decompose_itemnames: Decomposes item names into their four components
Description
This utility function decomposes item names into components:
instrument, domain, mode and number
Usage
decompose_itemnames(x)
Value
A data.frame with length(x) rows and
four columns, named: instrument, domain, mode,
and number.
Arguments
x
A character vector containing item names (gsed lexicon)
Author
Stef van Buuren
Details
The gsed-naming convention is as follows. Position 1-3 codes the
instrument, position 4-5 codes the domain, position 6 codes
direct/caregiver/message, positions 7-9 is a item sequence number.