Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

College Algebra

Authors: Margaret L. Lial, John Hornsby, David I. Schneider, Callie Daniels

12th edition

134697022, 9780134313795 , 978-0134697024

More Books

Students also viewed these Mathematics questions