View source: R/sort_itemnames.R
sort_itemnames | R Documentation |
This function sorts the item names according to instrument, domain, mode and number. The user can specify the sorting order.
sort_itemnames(x, order = "idnm") order_itemnames(x, order = "idnm")
x |
A character vector containing item names (gsed lexicon) |
order |
A four-letter string specifying the sorting order.
The four letters are: |
sort_itemnames()
return a character vector with
length(x)
sorted elements. order_itemnames()
return
an integer vector of length length(x)
with positions of
the sorted elements.
Stef van Buuren
decompose_itemnames()
itemnames <- c("aqigmc028", "grihsd219", "", "by1mdd157", "mdsgmd006") sort_itemnames(itemnames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.