Importing CSV file in RStudio

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Importing CSV file in RStudio

AdiRohan
Hello,
I am at beginner level in R using RStudio in Windows 10. I was importing a csv file in R using read.csv, but in the console it shows that the data frame has certain number of rows of 1 variable only instead of 21 variables that the CSV file has. I would really appreciate if someone can tell me what I am doing wrong?
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Importing CSV file in RStudio

shubam.sharma
Hi,

Try this:

library(foreign)

It should give you the option to then select your data file.