[R] coercing columns
Tarmo Remmel
tarmo.remmel at utoronto.ca
Fri Jan 7 17:38:28 CET 2005
if your dataframe is called foo,
as.vector(foo)
Quoting Christoph Scherber <Christoph.Scherber at uni-jena.de>:
> 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
>
_________________________________________________
Tarmo Remmel B.E.S. M.Sc.F. (Ph.D. Candidate)
GUESS Research Group - Department of Geography
University of Toronto, Toronto, Ontario, CANADA
Phone: 416.946.3058
http://eratos.erin.utoronto.ca/remmelt
More information about the R-help
mailing list