R/char2fac.R

Defines functions char2fac

Documented in char2fac

char2fac <-
function(x){
		for (i in 1:length(x)) {
			if (is.character(x[,i])) {
					x[,i]=factor(x[,i])
			}
		}
return(x)
}

Try the erpR package in your browser

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

erpR documentation built on May 2, 2019, 3:33 p.m.