[R] subscripting issues

From: ablukacz <ablukacz_at_utm.utoronto.ca>
Date: Thu 25 Jan 2007 - 16:04:04 GMT

Dear All,

I have a very simple problem.
I have a matrix called Predictors with headers X0...X24
>dim(Predictors)

[1] 79 25

  Predictors

           X0 X1 X2 X3 X4 X5 X6 1 13.741200 12.148036 11.909435 11.671669 11.238207 10.864697 10.566351 2 10.240200 11.883900 11.529400 11.515050 11.411640 11.105800 10.813457

I would like to take each row and all the corresponding columns with out the header.
I tried Predictors[1,1:25] but that retains the headers.

Any suggestions.

Thanks,

Agnes



R-help@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. Received on Fri Jan 26 03:09:47 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 17:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.