Re: [R] how to select out some columns using cbind()

2008-06-14 Thread ss
Thank you very much, Jim! Have a good evening! Allen On Sat, Jun 14, 2008 at 7:35 PM, jim holtman <[EMAIL PROTECTED]> wrote: > newdata1 <- data1[, seq(from=2, to=ncol(data1), by=7)] > > On Sat, Jun 14, 2008 at 7:27 PM, ss <[EMAIL PROTECTED]> wrote: > > Hello! I have a matrix: > > > >> dim(data1)

Re: [R] how to select out some columns using cbind()

2008-06-14 Thread jim holtman
newdata1 <- data1[, seq(from=2, to=ncol(data1), by=7)] On Sat, Jun 14, 2008 at 7:27 PM, ss <[EMAIL PROTECTED]> wrote: > Hello! I have a matrix: > >> dim(data1) > [1] 34176 581 > > of 34176 rows and 581 columns, > > I want to make a new matrix data2 by taking the 2nd column, 9th column, 16th > co

[R] how to select out some columns using cbind()

2008-06-14 Thread ss
Hello! I have a matrix: > dim(data1) [1] 34176 581 of 34176 rows and 581 columns, I want to make a new matrix data2 by taking the 2nd column, 9th column, 16th column the column number is in the order of: 2 9 (2+7) 16 (9+7) 23 (16+7) ... the new matrix data2 should include 83 columns, is