An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110403/040f9a58/attachment.pl>
Quick question about duplicating vectors
3 messages · David Winsemius, Xiaoxi Gao
On Apr 3, 2011, at 6:04 PM, Xiaoxi Gao wrote:
Hello R users, I have a quick question, if I have a data set a, say a <- c(1,2,3,4,5)
You might as well learn to use more precise R terminology... that is a `vector`.
and I want to get a new data set b, b <- c(1,1,1,2,2,2,3,3,3,4,4,4,5,5,5) Could anyone tell me how I can obtain this?
?rep
David Winsemius, MD West Hartford, CT
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110403/a8d18885/attachment.pl>