Learn R Programming

taRifx (version 1.0.6.2)

trues: Return vector of equal length containing all TRUEs

Description

Takes a vector and returns a vector of equal length containing all trues (used for selecting all of a given vector)

Usage

trues(vec)

Arguments

vec

any vector (or valid object for length )

Value

a vector of TRUEs of the length of the object passed to it

Examples

Run this code
# NOT RUN {
x <- runif(100)
trues(x)
# }

Run the code above in your browser using DataLab