[R] subsetting a matrix and filling other

2006-11-07 Thread antonio rodriguez
Hi, Having a matrix F(189,6575) I want to do this: z1-subset(F[,1], F[,1] = 5 F[,1] = 10) . . . z189-subset(F[,189], F[,189] = 5 F[,189] = 10) I would prefer to have an empty matrix, say 'z' in order to fill its columns with the output of subsetting F. But each of the subsets can differ in

Re: [R] subsetting a matrix and filling other

2006-11-07 Thread Christos Hatzis
] subsetting a matrix and filling other Hi, Having a matrix F(189,6575) I want to do this: z1-subset(F[,1], F[,1] = 5 F[,1] = 10) . . . z189-subset(F[,189], F[,189] = 5 F[,189] = 10) I would prefer to have an empty matrix, say 'z' in order to fill its columns with the output of subsetting F

Re: [R] subsetting a matrix and filling other

2006-11-07 Thread antonio rodriguez
) and a pretty good processor (P4, 2.8) Antonio -Christos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of antonio rodriguez Sent: Tuesday, November 07, 2006 2:01 PM To: R-Help Subject: [R] subsetting a matrix and filling other Hi, Having a matrix F

Re: [R] subsetting a matrix and filling other. Solved

2006-11-07 Thread antonio rodriguez
Of antonio rodriguez Sent: Tuesday, November 07, 2006 2:01 PM To: R-Help Subject: [R] subsetting a matrix and filling other Hi, Having a matrix F(189,6575) I want to do this: z1-subset(F[,1], F[,1] = 5 F[,1] = 10) . . . z189-subset(F[,189], F[,189] = 5 F[,189] = 10) I would prefer to have