This is a traffic datafile that contains vehicle speed, volume and so on.
As I know, the only thing need to devide variables by column is comma(,), and those ' make an error in programs.
So what should I do to get rid all of ' so I can read the table in R?
And what function should I use to match each data(devided by comma) with the first row(variable name)
Can you paste some raw data rather than a screenshot? We need to see your code too. See FAQ: How to do a minimal reproducible example ( reprex ) for beginners
Those ' are quotes indicating text data.
Try
read.csv(mydata, sep = ",", quote = "'")
Not tested
1 Like
I modified ur code properly and it worked! Thx
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.