Question: Question re importing csv data into R I created an excel file that contain one column of data and saved as a csv then I

Question re importing csv data into R

I created an excel file that contain one column of data and saved as a csv

then I used

m <- read.csv("myfile.csv')

the data is imported but when I do

hist(m) it says data is not numeric

however when I do

m<-m[,1]

then hist(m) works !

any idea why? How do I import a csv without having to perform m<-m[,1] ??

Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!