mkdesign: Quickly make a design

Description Usage Arguments Details Value

View source: R/ttmake.R

Description

Quickly make a model matrix from a factor

Usage

1

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 April 1, 2020, 4:42 a.m.