Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread A J
: Re: [R] extracting rows and columns from a big matrix > >> > >> Hi, > >> > >> Did you follow up on Bill's suggestion? > >> > >> >> -Original Message- > >> >> From: r-help-boun...@r-project.org [mailto:r-hel

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread Sarah Goslee
> Sorry so much for all inconveniences. > > > AJ > > >> Date: Mon, 16 Jul 2012 15:26:27 -0400 >> From: sarah.gos...@gmail.com >> To: r-help@r-project.org >> Subject: Re: [R] extracting rows and columns from a big matrix >> >> Hi, >> >> Did

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread Sarah Goslee
;> Cc: r-help@r-project.org >> Subject: Re: [R] extracting rows and columns from a big matrix >> >> Did you ever show the code that caused the problem? >> In particular, was it one very long line of code? It is possible >> that copying and pasting a long line into

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread arun
and consistent argument. Perhaps label length have some connection, but I am not sure. I will inform about the results. Greetings and thanks again AJ > Date: Mon, 16 Jul 2012 07:05:44 -0700 > From: smartpink...@yahoo.com > Subject: Re: [R] extracting rows and columns from a big mat

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread arun
: Monday, July 16, 2012 6:49 AM Subject: RE: [R] extracting rows and columns from a big matrix Thank you very much to everybody for your fast respones. All your solutions are working well, but I keep with the same problem. When I use whatever of your proposals with a small set of colums (and/or

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread Nordlund, Dan (DSHS/RDA)
nal Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of William Dunlap > Sent: Monday, July 16, 2012 10:39 AM > To: A J; smartpink...@yahoo.com > Cc: r-help@r-project.org > Subject: Re: [R] extracting rows and columns from a big mat

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread William Dunlap
ll try to get different groups and then I will join them with "merge" > function. I > think maybe not the best solution, but at least, I hope it works. > > Thanks everybody! > > AJ > > > > Date: Mon, 16 Jul 2012 09:08:15 -0700 > > From: smartpink...

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread A J
ast, I hope it works. Thanks everybody! AJ > Date: Mon, 16 Jul 2012 09:08:15 -0700 > From: smartpink...@yahoo.com > Subject: Re: [R] extracting rows and columns from a big matrix > To: anxu...@hotmail.com > CC: r-help@r-project.org > > Hi, > > If you think that R

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread Petr Savicky
On Mon, Jul 16, 2012 at 03:10:22PM +0200, A J wrote: > > Yes, I have tried it and this works. > > Indeed, if I use a small number of colums, all the methods proposed here are > working. Following the previous mail I have splited the number of colums in 4 > parts of 447 colums each one. The firs

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread A J
about the enigmatic problem when I find it (I hope so...). Thanks for your comments and help. AJ > Date: Mon, 16 Jul 2012 05:46:46 -0700 > From: smartpink...@yahoo.com > Subject: Re: [R] extracting rows and columns from a big matrix > To: anxu...@hotmail.com > CC: r-help@r-project.org

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread jim holtman
quot;X13518", "X13574", > "X13586", "X13588"))]) >> > > However, when I use the same code introducing the total number of columns > (around 2000) it's not working. > > I have checked all labels several times in order not to commit mi

Re: [R] extracting rows and columns from a big matrix

2012-07-16 Thread A J
88"))]) > However, when I use the same code introducing the total number of columns (around 2000) it's not working. I have checked all labels several times in order not to commit mistakes. For this reason I have copied and pasted all labels from a database to a spreadsheet where I

Re: [R] extracting rows and columns from a big matrix

2012-07-15 Thread arun
12 X22 X31 X1   1   3   5   7 X12  3   7   5   2 X22  6   7   4   9 X31  1   1   1   1 A.K. - Original Message ----- From: A J To: jholt...@gmail.com Cc: r-help@r-project.org Sent: Sunday, July 15, 2012 3:43 PM Subject: Re: [R] extracting rows and columns from a big matrix Sorry so much

Re: [R] extracting rows and columns from a big matrix

2012-07-15 Thread arun
data.frame to matrix dat2<-as.matrix(dat1[(select=c("X1","X12","X22","X31")),(select=c("X1","X12","X22","X31"))])  is.matrix(dat2) [1] TRUE A.K. - Original Message - From: A J To: jholt...@gmail.co

Re: [R] extracting rows and columns from a big matrix

2012-07-15 Thread jim holtman
how to solve the problem of extracting columns and rows using labels > from a squared matrix. I have enclosed a text file with the idea in order to > understand it better. > > > Thanks again, and sorry for the inconvenience. > > > Best, > > > AJ > > > >&g

Re: [R] extracting rows and columns from a big matrix

2012-07-15 Thread A J
text file with the idea in order to understand it better. Thanks again, and sorry for the inconvenience. Best, AJ > Date: Sun, 15 Jul 2012 14:53:47 -0400 > Subject: Re: [R] extracting rows and columns from a big matrix > From: jholt...@gmail.com > To: anxu...@hotmail.com &g

Re: [R] extracting rows and columns from a big matrix

2012-07-15 Thread Sarah Goslee
You're missing a ) You close c() but not subset(). That's the most common cause of incomplete commands: it often works to just keep typing ) until you get the regular prompt. Sarah On Sun, Jul 15, 2012 at 2:47 PM, A J wrote: > > Hi there and thanks in advance. > > I have a large symmetrical m

Re: [R] extracting rows and columns from a big matrix

2012-07-15 Thread jim holtman
For a start, you are missing a quote and a parenthese on the statement; probably should be: (another quote was also missing) n<-subset(m, select=c("X1", "X7", "X12","X15", "X22", "X26", "X31", "X34", "X39", "X44", "X51", "X58")) Not sure what you want with the rownames; an example would help and

[R] extracting rows and columns from a big matrix

2012-07-15 Thread A J
Hi there and thanks in advance. I have a large symmetrical matrix stored in a text file. After load in R I would like to extract the same number of columns and rows (symmetrical submatrix) using their labels. I have tried this code in order to extract columns, but R console gives me the "+" s