With this script:
# I) Go to the working directory
setwd("/home/***/Desktop/***")
# II) Verify the current working directory
print(getwd())
# III) Load te nedded package
require("csv")
# IV) Read the desired file
read.csv(file="serious-injury-outcome-indicators-2000-18-csv.csv", header=TRUE, sep=",")
I tried to read this file: Serious injury outcome indicators: 2000–18 – CSV
But the output in the consol is not well, Can someone try it and tell me if he encoutred the same problem. Thanks
library(readr)and useread_csv. This loads data as adata.frameand atibble.csvpackage used - there's aread.csvbuilt in to R. Have you tried the default version?d <- read.csv(...)and have a look atd?dec="."like so:df<-read.table("C:/Users/***/serious-injury-outcome-indicators-2000-18-csv.csv", header=T, sep=",", dec=".")but other than that it looks finedec = "."is the default. And why switch toread.table?