[R] RES: Simple... but...

Leandro Marino leandro at cesgranrio.org.br
Wed Jul 23 16:35:15 CEST 2008


I thinks this is the solution that you want!

as.vector(matrix(c(x,y),byrow=T,ncol=3))

-----Mensagem original-----
De: r-help-bounces em r-project.org [mailto:r-help-bounces em r-project.org]Em
nome de Wacek Kusnierczyk
Enviada em: quarta-feira, 23 de julho de 2008 10:25
Para: R help
Assunto: Re: [R] Simple... but...


Shubha Vishwanath Karanth wrote:
> Hi R,
>
>
>
> If
>
> x=c(1,3,5)
>
> y=c(2,4,6)
>
>
>
> I need a vector which is c(1,2,3,4,5,6) from x and y.
>
>
>
> How do I do it? I mean the best way....
>
>
>

the absolutely best way is:
?c

vQ

______________________________________________
R-help em r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list