Re: [R] Retrieve only part of a matrix

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Sun, 13 Jan 2008 11:48:10 -0500 (EST)


mymatrix <- oldmatrix[1:271,4:19000]

> Hi All,
>
> I'm new with R; this is a basic question. I was
> given a matrix I of (nrow,
> ncol), I would like to create another matrix A with
> some data in the matrix
> I, say [1,4] (row 1, column 4) to [271,19000] (row
> 271, column 19000). How
> do I do this? Please help. Thank you very much.
>
>
>
> --mc
>
>
>
>
>
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org 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.
>



R-help_at_r-project.org 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 Sun 13 Jan 2008 - 16:52:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 13 Jan 2008 - 18:30:07 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.

list of date sections of archive