Re: [R] Numeric data not numeric in .csv file

2012-05-02 Thread Eve Proper
Thanks everyone for your helpful responses. I looked at the csv file in a text editor and saw no spaces or non-numerical characters (other than periods as decimals) outside of the header. str() says me that the variables are either num or int. David was spot-on; I was trying > storage.mode(~miles)

Re: [R] Numeric data not numeric in .csv file

2012-05-02 Thread David Winsemius
On May 1, 2012, at 8:47 PM, Eve Proper wrote: I am a raw novice to R, playing around with a mini .csv dataset created in Excel. I can read it in and the data looks OK in Excel and upon initial inspection in R: hikes <- read.csv("/Users/eproper/Desktop/hikes.csv", header=TRUE) print(hikes)

Re: [R] Numeric data not numeric in .csv file

2012-05-02 Thread R. Michael Weylandt
On Wed, May 2, 2012 at 4:34 AM, Jim Lemon wrote: > On 05/02/2012 10:47 AM, Eve Proper wrote: >> >> I am a raw novice to R, playing around with a mini .csv dataset created in >> Excel. I can read it in and the data looks OK in Excel and upon initial >> inspection in R: >> >> hikes<- read.csv("/User

Re: [R] Numeric data not numeric in .csv file

2012-05-02 Thread Jim Lemon
On 05/02/2012 10:47 AM, Eve Proper wrote: I am a raw novice to R, playing around with a mini .csv dataset created in Excel. I can read it in and the data looks OK in Excel and upon initial inspection in R: hikes<- read.csv("/Users/eproper/Desktop/hikes.csv", header=TRUE) print(hikes) does exact

Re: [R] Numeric data not numeric in .csv file

2012-05-01 Thread Jeff Newmiller
Sounds like you have some text in your csv file. Open it with a text editor and look at it. Some common problems are: alphabetic or symbol characters, spaces, quotes around numbers. Also watch out for blank rows or columns. Read the Posting Guide (mentioned at the bottom of every post). Tips: Th

[R] Numeric data not numeric in .csv file

2012-05-01 Thread Eve Proper
I am a raw novice to R, playing around with a mini .csv dataset created in Excel. I can read it in and the data looks OK in Excel and upon initial inspection in R: hikes <- read.csv("/Users/eproper/Desktop/hikes.csv", header=TRUE) print(hikes) does exactly what it is supposed to do. Two of the v