Akram Khaleghei Ghosheh balagh
2011-Jan-26 19:42 UTC
[R] how could I choose subvector of a vector?
Hello ; How could I choose subvector of a vctor. for example if v=c(1,2,5,0,1), how could I chose the (1,2) or (1,2,5). thanks; [[alternative HTML version deleted]]
On Jan 26, 2011, at 2:42 PM, Akram Khaleghei Ghosheh balagh wrote:> Hello ; > How could I choose subvector of a vctor. for example if > v=c(1,2,5,0,1), how > could I chose the (1,2) or (1,2,5).?"[" v[ c(1,2,5) ]> thanks; > > [[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.David Winsemius, MD West Hartford, CT