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]
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
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
3 matches
Mail list logo