I have a problem, with the dataset I have. when I import it with CSV, without specifying anything all the columns are character class, while some are definitly numeric. So I tried to pass the option stringsAsFactors as False may be it will differentiate between them, but I got a message that Unused argument (stringsAsFactors = FALSE), so I don't understand. In the first version after all the columns were character, I used the as.numeric to convert them to numeric and I see it is done in the environment, but when I check the class there are still character. does someone have an answer please?
# To clean up the memory of your current R session run the following line rm(list=ls(all=TRUE)) #install tidyverse and reprex install.packages("tidyverse") #> Installing package into 'C:/Users/walid/Documents/R/win-library/3.4' #> (as 'lib' is unspecified) #> package 'tidyverse' successfully unpacked and MD5 sums checked #> #> The downloaded binary packages are in #> C:\Users\walid\AppData\Local\Temp\Rtmpgz0mZh\downloaded_packages library(reprex) # Set your directory to the folder where you have downloaded the SKU dataset # install readr library(readr) # Let's load our dataset data <- read_csv('New_York_City_Leading_Causes_of_Death.csv', stringsAsFactors = FALSE) #> Error in read_csv("New_York_City_Leading_Causes_of_Death.csv", stringsAsFactors = FALSE): argument inutilisé (stringsAsFactors = FALSE)
Created on 2018-04-16 by the [reprex package](http://reprex.tidyverse.org) (v0.2.0). Created on 2018-04-16 by the [reprex package](http://reprex.tidyverse.org) (v0.2.0). cordially walid