[R] help with vector construction

2007-07-05 Thread Juan Pablo Fededa
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]]

Re: [R] help with vector construction

2007-07-05 Thread Henrique Dallazuanna
Hi, Example: n - 1:10 mat[2+3*n,3] #Where mat is the matrix Is what you want? -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40 S 49° 16' 22 O On 05/07/07, Juan Pablo Fededa [EMAIL PROTECTED] wrote: Hi all, I want to make a vector with the third column of a matrix, but only for

Re: [R] help with vector construction

2007-07-05 Thread John Kane
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 [EMAIL PROTECTED] wrote: Hi all, I want to make a vector with the third column of a matrix, but only for the 2+3n

Re: [R] help with vector construction

2007-07-05 Thread Greg Snow
] help with vector construction 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