View source: R/decompose_itemnames.R
decompose_itemnames | R Documentation |
This utility function decomposes item names into components: instrument, domain, mode and number
decompose_itemnames(x)
x |
A character vector containing item names (gsed lexicon) |
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.
A data.frame
with length(x)
rows and
four columns, named: instrument
, domain
, mode
,
and number
.
Stef van Buuren
https://docs.google.com/spreadsheets/d/1zLsSW9CzqshL8ubb7K5R9987jF4YGDVAW_NBw1hR2aQ/edit#gid=0
sort_itemnames()
itemnames <- c("aqigmc028", "grihsd219", "", "by1mdd157", "mdsgmd006")
decompose_itemnames(itemnames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.