R/misc.R

Defines functions mylevels

######################################################################
# mylevels() returns levels if given a factor, otherwise 0 
######################################################################
mylevels <- function(x) if (is.factor(x)) levels(x) else 0

Try the uplift package in your browser

Any scripts or data that you put into this service are public.

uplift documentation built on May 2, 2019, 9:32 a.m.