R/char2fac.R

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 June 7, 2019, 3 a.m.