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