Column-wise true/false value | R Documentation |
Column-wise true/false value of a matrix.
colTrue(x)
colFalse(x)
colTrueFalse(x)
x |
A logical matrix with data. |
An integer vector where item "i" is the number of the true/false values of "i" column.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
rowMins, rowFalse, nth, colrange, colMedians, colVars, colSort, rowSort, rowTrue
x <- matrix(as.logical(rbinom(100*100,1,0.5)),100,100)
s1 <- colTrue(x)
s1 <- colFalse(x)
s1 <- colTrueFalse(x)
x<-s1<-NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.