R: Row-wise true value of a matrix

Row-wise true value {Rfast} | R Documentation

## Row-wise true value of a matrix

### Description

Row-wise true value of a matrix.

### Usage

    rowTrue(x)
    rowFalse(x)
    rowTrueFalse(x)

### Arguments

`x` | A logical matrix with data.

### Value

An integer vector where item "i" is the number of the true/false values of "i" row.

### Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

### See Also

`rowMins, colFalse, nth, rowrange, rowMedians, rowVars, colTrue`

### Examples

    x <- matrix(as.logical(rbinom(100*100,1,0.5)),100,100)

    s1 <- rowTrue(x)

    s1 <- rowFalse(x)

    s1 <- rowTrueFalse(x)

    x<-s1<-NULL

[Package Rfast version 2.0.0 Index]