Re: [R] Retrieve only part of a matrix

2008-01-13 Thread John Kane
mymatrix <- oldmatrix[1:271,4:19000] --- My Coyne <[EMAIL PROTECTED]> 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]

Re: [R] Retrieve only part of a matrix

2008-01-13 Thread Henrique Dallazuanna
Try this: A <- I[1:271, 4:19000] On 13/01/2008, My Coyne <[EMAIL PROTECTED]> 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,1900

[R] Retrieve only part of a matrix

2008-01-13 Thread My Coyne
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