View source: R/learning_states.R
| sample_learning_states | R Documentation |
Samples without replacement from the distinct states of the selected categories, so the result never repeats a state.
sample_learning_states(n, categories = "all", seed = NULL)
n |
Number of unique states to draw. A single positive whole number, at most the number of distinct states in the selected categories. |
categories |
Categories passed to |
seed |
Optional random seed. |
A tidy base data.frame with n rows, one per sampled state, and
columns order (the selection order, 1:n), category and state. A
state belonging to several categories gets all of them in category,
joined by ";".
sample_learning_states(n = 6, categories = "cognitive", seed = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.