New to Rstudio.
I open a csv file and change one column from
char to 'date'
Then click Import and it works fine. However, if I try to put this in a script to avoid changing to date every time I open this, the code preview I use does not work.
The error is this:
Error: unexpected '=' in:
"SampleImport <- read_csv("LoadingData/data/SampleImport.csv",
+ col_types ="
I try to make sense of the Help file, but I don't recognize my error there.