makeLogic: Make Logical

Description Usage Arguments Value Examples

Description

transforms a vector of indicies into logical values. Requires the full size of the output list

Usage

1
makeLogic(loc, size)

Arguments

loc

a list of indicies

size

the length of the output vector

Value

a vector of logicals

Examples

1
2
i<-c(1,2,3)
all(makeLogic(i,4) == c(TRUE,TRUE,TRUE,FALSE))

alexjgriffith/CCCA documentation built on May 10, 2019, 8:52 a.m.