help with vector construction
Or an alternative to Henrique's if you want to select all the rows from row 2 up to the 3*n row this may work. n <- 2 myvector <- data1[2:(2*n), 3]
--- Juan Pablo Fededa <jpfededa at gmail.com> wrote:
Hi all, I want to make a vector with the third column of a matrix, but only for the 2+3n rows of the matrix, with n being an entire number from 0 to a million. How can I do that in an easy way? Thanks in advance, Juan Pablo [[alternative HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch 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.