R/as.mlcm.df.R

Defines functions as.mlcm.df

Documented in as.mlcm.df

as.mlcm.df <- function(d, ...){
	if (!inherits(d, "data.frame")) 
		stop("Object must have class data.frame!\n")
	if((length(d) < 5) || !(length(d) %% 2))
		stop("Data frame must be at least 5 columns and have an odd number of columns!\n")
		class(d) <- c("mlcm.df", "data.frame")
		d
}
computational-psychology/MLCM documentation built on Jan. 12, 2022, 12:23 a.m.