Re: [R] subsetting tables

2011-09-07 Thread Petr PIKAL
Hi > > Hi Eik, > > greetings to Hamburg! :-) Thanks for the fast and helpful answer > > > Eik Vettorazzi-2 wrote: > > > > #compare > > str(red[,2]) > > str(red[2,]) > > > > I understand that the first is a real vector of nums in R and the second is > a ?? matrix/list/data.frame ?? of single

Re: [R] subsetting tables

2011-09-06 Thread netzwerkerin
Hi Eik, greetings to Hamburg! :-) Thanks for the fast and helpful answer Eik Vettorazzi-2 wrote: > > #compare > str(red[,2]) > str(red[2,]) > I understand that the first is a real vector of nums in R and the second is a ?? matrix/list/data.frame ?? of single ? entries? Can I transpose/transfo

Re: [R] subsetting tables

2011-09-06 Thread netzwerkerin
Hi Jannis, and thanks for the quick answer jannis-2 wrote: > > > which(red > 0.5) > > this works but what are the actual numbers that are spit out? Because the next step: jannis-2 wrote: > > > red[which(red > 0.5)] > does not work. It gives an Error in `[.data.frame`(tableReduced,

Re: [R] subsetting tables

2011-09-06 Thread Eik Vettorazzi
Hi Netzwerkerin, subset is a generic function and behaves different for different object classes. txt<-" Allstar hsa.let.7a hsa.let.7a.1 hsa.let.7a.2 20.87 0.79-0.57 1.07 30.67 -1.14-0.78-0.95 4 -0.46 -0.30-0.36 1.14" red<-

Re: [R] subsetting tables

2011-09-06 Thread Jannis
2011: > Von: netzwerkerin > Betreff: [R] subsetting tables > An: r-help@r-project.org > Datum: Dienstag, 6. September, 2011 14:10 Uhr > Hi guys, > > one of the questions where you need a real human instead of > a search engine, > so it would be great if you could help. &

[R] subsetting tables

2011-09-06 Thread netzwerkerin
Hi guys, one of the questions where you need a real human instead of a search engine, so it would be great if you could help. I have a matrix of z-scores which I would like to filter, sometimes columnwise, sometimes rowwise. Data looks like this: Allstar hsa.let.7a hsa.let.7a.1 hsa.let.7a.2 2