name.blocks | R Documentation |
This helper function names any unnamed elements in the blocks
specification. This is a convenience function.
name.blocks(blocks, prefix = "B")
blocks |
List of vectors with variable names per block. List elements
may be named to identify blocks. Variables within a block are
imputed by a multivariate imputation method
(see |
prefix |
A character vector of length 1 with the prefix to be using for naming any unnamed blocks with two or more variables. |
This function will name any unnamed list elements specified in
the optional argument blocks
. Unnamed blocks
consisting of just one variable will be named after this variable.
Unnamed blocks containing more than one variables will be named
by the prefix
argument, padded by an integer sequence
stating at 1.
A named list of character vectors with variables names.
mice
blocks <- list(c("hyp", "chl"), AGE = "age", c("bmi", "hyp"), "edu")
name.blocks(blocks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.