View source: R/validate_data.R
| validate_data | R Documentation |
Checks whether a data frame is suitable for tiered binary response conversion.
validate_data(data, n_tier)
data |
A data frame containing binary tier responses. |
n_tier |
Number of tiers in each item. |
Invisibly returns TRUE if the data are valid.
data <- data.frame(
Jwb_1 = c(1, 1, 0),
Als_1 = c(1, 0, 0),
Jwb_2 = c(0, 1, 1),
Als_2 = c(1, 0, 1)
)
validate_data(data, n_tier = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.