Displaying 1 result from an estimated 1 matches for "tp1474958p1474958".
2010 Feb 09
3
subset in a matrix
...e correct syntax?
n = 15
m = 5
cnames = paste("x",1:m,sep="")
rnames = 1:n
z = matrix(rnorm(n*m),n,m,dimnames =list(rnames,cnames))
Thanks,
Jorge
test = subset(z,x1 < 0, select = c(cnames))
--
View this message in context: http://n4.nabble.com/subset-in-a-matrix-tp1474958p1474958.html
Sent from the R help mailing list archive at Nabble.com.