[R] help with vector construction
jrkrideau at yahoo.ca
Thu Jul 5 20:24:14 CEST 2007
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
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
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help