R/splitcol.R

splitcol <- function(variable,split,newnames) {
	tmp <- strsplit(as.character(variable),split)
	newvars <- data.frame(t(sapply(tmp,c)))
	names(newvars) <- newnames
	return(newvars) 
	}

Try the DeducerANOVA package in your browser

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

DeducerANOVA documentation built on May 2, 2019, 6:11 p.m.