rep(A, each=2) On Thu, Jul 30, 2009 at 12:15 AM, Inchallah Yarab<[email protected]> 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]] > > ______________________________________________ > [email protected] 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. >
______________________________________________ [email protected] 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.

