[R] coercing columns
Robert Kruus
bob at kruus.forestry.utoronto.ca
Fri Jan 7 18:08:34 CET 2005
How about
as.vector(x)
where x is the data?
BTW a matrix in R is stored as a vector anyways (IIRC).
--
robert.kruus at utoronto.ca
You will feel hungry again in another hour.
--------
It is rumored that on Fri, 07 Jan 2005 15:47:04 +0100
Christoph Scherber <Christoph.Scherber at uni-jena.de> wrote:
> Dear all,
>
> I have a data frame that looks like this:
>
> c1 c2 c3
> A B C
> B C A
> A A B
>
> and so on;
>
> I´d like to produce one single vector consisting of the columns c1,c2,
> c3, such that
>
> vector=("A","B","A","B","C","A","C","A","B")
>
> I guess it´s easy to do but I don´t know how...Can anyone help me?
>
> Thanks a lot!
> Christoph
>
> ______________________________________________
> 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