design_matrix.event_term | R Documentation |
This function creates a design matrix from an event_term object by first populating a local environment with event values and then applying model.matrix to the formula derived from the event_term.
## S3 method for class 'event_term'
design_matrix(x, drop.empty = TRUE, ...)
x |
An event_term object. |
drop.empty |
Logical; if TRUE, columns with no events are removed. |
... |
Additional arguments. |
A tibble representing the design matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.