[R] Read.table
Liaw, Andy
andy_liaw at merck.com
Wed Mar 8 14:31:59 CET 2006
From: Uwe Ligges
>
> Matias Mayor Fernandez wrote:
>
> > Hi,
> >
> >
> >
> > I have some column vector in txt or xls and I need to load
> into R as
> > numeric vector.
> >
> >
> >
> > I use the read.table (X=read.table(123.txt") command but
> the program
> > say that "X is not a numeric vector"
>
> No, I think you got:
>
> Error: syntax error in "(X=read.table(123.txt"
>
> or you have used another call without the syntax error in it.
>
> In any case, please be more specific what you did. You might
> also want
> to copy the first few lines of file 123.txt in your mail.
Besides, if Matias only has one column of data and want that read in as a
vector, scan() is really more appropriate.
Andy
> Uwe Ligges
>
>
> >
> >
> >
> >
> > Where is the problem?
> >
> >
> >
> > Matías
> >
> >
> >
> > University of Oviedo,
> >
> >
> >
> > Spain
> >
> >
> > [[alternative HTML version deleted]]
> >
> >
> >
> >
> ----------------------------------------------------------------------
> > --
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list