[R] vector

Linlin Yan yanlinlin82 at gmail.com
Wed Jul 29 18:26:32 CEST 2009


rep(A, each=2)

On Thu, Jul 30, 2009 at 12:15 AM, Inchallah
Yarab<inchallahyarab at yahoo.fr> wrote:
> Hi ,
>
> i have a vector A=(a1,a2,a3,a4) and i want to create another vector B=(a1,a1,a2,a2,a3,a3,a4,a4) !!!
> i know that it is simple but i begin with R so i nned your help!!
>
> thank you for your help !!!
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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