[R] Simple numeric "as.is" question
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Mar 15 19:26:47 CET 2004
On Mon, 15 Mar 2004, Andy Bunn wrote:
> Look at the help for:
> ?as.numeric
and make sure you read there that it is the wrong thing (as a column of a
data frame will be a factor). Better to look this up in the FAQ!
> HTH, Andy
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Janet Gannon
> > Sent: Monday, March 15, 2004 7:04 AM
> > To: r-help at stat.math.ethz.ch
> > Subject: [R] Simple numeric "as.is" question
> >
> >
> > I am reading a list of numbers from my clipboard, and have been
> > successful, except I can't make a histogram as R doesn't recognize my
> > variable as numeric. I know I need to use "as.is", but the specifics
> > escape me.
> >
> > I have used x<-read.table("clipboard", header=F) to import from a txt
> > file. How do make this numeric? Thanks, J.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list