mor: method or

Description Usage Arguments Value Examples

Description

iterates through the members of the input vector and returns the first variable that has a non NULL value

Usage

1

Arguments

...

variable length list of inputs

Value

the first non NULL value

Examples

1
2
3
4
5
mor() # > NULL
mor(1,2,3) # > 1
mor(NULL,1) # > 1
# useful for generalizing dim(x)[2]
mor(dim(c(1,2,3))[2],1) #> 1

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