Re: [R] Filter data

2010-12-20 Thread AlexZolot
You missed the first, the most important line of str() output. What type is your data? -- View this message in context: http://r.789695.n4.nabble.com/Filter-data-tp3070069p3108011.html Sent from the R help mailing list archive at Nabble.com. __ R-help

Re: [R] Plot a matrix recursively

2010-12-20 Thread AlexZolot
for data.frame: for(j in grep('Laser_', names(m)) lines(m[,j]) for matrix: for(j in grep('Laser_', colnames(m)) lines(m[,j]) or: for(j in 2:4) lines(m[,j]) Shorter could be worse if you insert additional columns later. alcesgabbo wrote: > > Hi, > > I have the following matrix (named

Re: [R] plot more plots from one matrix

2010-12-20 Thread AlexZolot
See library(reshape) -- View this message in context: http://r.789695.n4.nabble.com/plot-more-plots-from-one-matrix-tp3069545p3107761.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz

Re: [R] Plot a matrix recursively

2010-12-20 Thread AlexZolot
for data.frame: for(j in grep('Laser_', names(m)) lines(m[,j]) for matrix: for(j in grep('Laser_', colnames(m)) lines(m[,j]) or for(j in 2:4) lines(m[,j]) Shorter could be worse if you insert additional columns later. -- View this message in context: http://r.789695.n4.nabble.com/Plot-a-m