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 Nov. 17, 2017, 2:11 p.m.