Learn R Programming

ramify (version 0.1.0)

falses: Matrix of Logical Values

Description

Creates an nrow-by-ncol matrix of logical values.

Usage

falses(nrow = 1, ncol = 1)

trues(nrow = 1, ncol = 1)

Arguments

nrow
The desired number of rows.
ncol
The desired number of columns.

Value

  • An nrow-by-ncol matrix of logical values.

See Also

fill, ones, zeros.

Examples

Run this code
falses(3)  # column vector of FALSEs
fill(FALSE, 3)
resize(as.logical(zeros(3)), 3)
trues(2, 3)  # 2-by-3 matrix of TRUEs
fill(TRUE, 2, 3)
resize(as.logical(ones(2, 3)), 2, 3)

Run the code above in your browser using DataLab