[R] extract with condition

From: Jonathan Charrier <jonathan.charrier_at_bordeaux.inra.fr>
Date: Wed 18 May 2005 - 20:11:16 EST


hello everybody,

i want to extract the name of the rows for the value = "TRUE"

these names give for the next program a list of file

i try many functions, and indexation but no solution give to me, i transform only the matrix.

thanks a lot

Jonathan Charrier

nmodT <- Y.obs1
Q <- 3
T <- length(nmodT[,1])*Q

qsd <- colSums(nmodT)
qsd <- as.matrix(qsd)

aqw<- qsd>T

aqw

            [,1]

2003-01-01 FALSE
2003-01-11  TRUE
2003-01-21  TRUE
2003-02-01  TRUE
2003-02-11  TRUE
2003-02-21  TRUE
2003-03-01  TRUE
2003-03-11  TRUE
2003-03-21  TRUE
2003-04-01  TRUE
2003-04-11  TRUE
2003-04-21  TRUE
2003-05-01  TRUE
2003-05-11  TRUE
2003-05-21  TRUE
2003-06-01  TRUE
2003-06-11  TRUE
2003-06-21  TRUE
2003-07-01  TRUE
2003-07-11  TRUE
2003-07-21  TRUE
2003-08-01  TRUE
2003-08-11  TRUE
2003-08-21  TRUE
2003-09-01  TRUE
2003-09-11  TRUE
2003-09-21  TRUE
2003-10-01  TRUE
2003-10-11  TRUE
2003-10-21  TRUE
2003-11-01  TRUE
2003-11-11  TRUE
2003-11-21  TRUE
2003-12-01  TRUE
2003-12-11  TRUE
2003-12-21  TRUE

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 18 20:40:34 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:50 EST