Brett Stansfield wrote:
-----Original Message-----
From: Brett Stansfield Sent: Wednesday, 19 January 2005 4:25 p.m.
To: '[EMAIL PROTECTED]'
Subject: Document1
<<Doc1.doc>> I was trying to get R to analyse one variable of the file
Chicken Weight. when I ask
hist(data$weight) R says "x must be numeric" yet when I check the data using Editor, it says quite clearly that variable name weight is numeric.
Guess you have a factor rather than numeric. Use R functions to check it, e.g. str().
what am I doing wrong here? I have attached a view from the console
docs are stripped.
Uwe Ligges
Brett
Brett Stansfield Environmental Scientist - Water Quality Hawke's Bay Regional Council 102 Vautier Street Private Bag 6006 Napier Phone (06) 835-9200 extn 9334 Fax (06) 835-3601
------------------------------------------------------------------------
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
