[R] Retrieve only part of a matrix
Henrique Dallazuanna
wwwhsd at gmail.com
Sun Jan 13 15:44:45 CET 2008
Try this:
A <- I[1:271, 4:19000]
On 13/01/2008, My Coyne <mcoyne at boninc.com> wrote:
> 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.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list