Takes a vector and returns a vector of equal length containing all trues (used for selecting all of a given vector)
trues(vec)
any vector (or valid object for length
)
a vector of TRUEs of the length of the object passed to it
# NOT RUN {
x <- runif(100)
trues(x)
# }
Run the code above in your browser using DataLab