mkdesign: Quickly make a design

View source: R/ttmake.R

mkdesignR Documentation

Quickly make a design

Description

Quickly make a model matrix from a factor

Usage

mkdesign(g)

Arguments

g

factor to be plotted. If g is not a factor, it will be converted to a factor.

Details

This is a shortcut wrapper around model.matrix(~0 + g)

Value

a model matrix with column names corresponding to factor levels.


january3/myfuncs documentation built on Jan. 16, 2025, 8:37 p.m.