[R] Retrieve only part of a matrix

John Kane jrkrideau at yahoo.ca
Sun Jan 13 17:48:10 CET 2008


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

--- 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.
>




More information about the R-help mailing list