R/checkfac.R

"checkfac" <-
function(classvec){
        if (!is.factor(classvec))classvec<-factor(classvec)
        if (!is.factor(classvec))
		stop("Problems reading factor classvec")
        return(classvec)
        }

Try the made4 package in your browser

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

made4 documentation built on Nov. 8, 2020, 6:49 p.m.