xobs_only | R Documentation |
Generate Observed Combinations Only
xobs_only(..., .length_out = NULL, .data = xnew_data_env$data)
... |
One or more variables to generate combinations for. |
.length_out |
A count to override the default length of sequences. |
.data |
Normally defined by |
xnew_data()
data <- tibble::tibble(
period = factor(c("before", "before", "after", "after"),
levels = c("before", "after")
),
annual = factor(c(1, 3, 5, 8), levels = c(1, 3, 5, 8))
)
xnew_data(data, period, annual)
xnew_data(data, xobs_only(period, annual))
xnew_data(data, xobs_only(period, xnew_seq(annual, length_out = 3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.