rep(A, each=2) On Thu, Jul 30, 2009 at 12:15 AM, Inchallah Yarab<inchallahya...@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@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. >
______________________________________________ R-help@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.