[R] Simple:: usage of stem() and hist()?

Alan Davis adavis at saipan.com
Sat Dec 29 00:57:24 CET 2001

I must apologize in advance for asking a simple question.  I am sure that a clue will be sufficient to get this show on the road.  I am trying to graph tide prediction data in various ways.  I haven't been able to answer this question after pouring over TFM.  

I read the datafile
      theight <- read.table("tides",header=TRUE)

I do get a summary() or fivenum() 

But when I run
      stem(theight), I receive CONSISTENTLY the following message, no matter when I have done: 

      > stem(theight)
      Error in stem(theight) : stem: x must be numeric

The file looks like this:

Perhaps there is some manipulation necessary to make the data into a vector, but it isn't obvious to me what to do. 

Thank you for any clue whatsoever.  

Alan Davis
Marianas High School
adavis at saipan.com                                     1-670-322-6580
    Alan E. Davis,  PMB 30, Box 10006, Saipan, MP 96950-8906, CNMI

I have steadily endeavored to keep my mind free, so as to give up any
hypothesis, however much beloved -- and I cannot resist forming one 
on every subject -- as soon as facts are shown to be opposed to it.  
                                  -- Charles Darwin (1809-1882)


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list