Create block-specific views of a Variable Dictionary without changing the
return type of dict_generate.
Arguments
- dict
A Variable Dictionary returned by
dict_generate.
Value
A named list of Variable Dictionaries, one per Survey Block. When
rows have no Survey Block assignment, the list includes "..unassigned".
Examples
dict <- data.frame(
response_column_id = c("QID1", "QID2"),
variable_name = c("q1", "q2"),
block = c("Block A", "Block B")
)
class(dict) <- c("qualtdict", class(dict))
dict_split_blocks(dict)
#> $`Block A`
#> response_column_id variable_name block
#> 1 QID1 q1 Block A
#>
#> $`Block B`
#> response_column_id variable_name block
#> 2 QID2 q2 Block B
#>