R/design_matrix.R

Defines functions design_matrix

Documented in design_matrix

#[export]
design_matrix <- function(x,ones=TRUE) {
	if(is.null(dim(x))){
		return(.Call(Rfast_design_matrix,x,ones))
	}
	.Call(Rfast_design_matrix_big,x)
}

Try the Rfast package in your browser

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

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.