Obtain the chart group from the chartcode
get_chartgrp(chartcode = NULL)
Chart codes, usually constructed by
create_chartcode()
. If not specified, the function uses
all chart codes.
The function returns a named vector with
length(chartcode)
elements with the chart group names.
Warning: This function uses the property that the
chartgrp
can be uniquely be identified from the
chartcode
. When the same chartcode's are used in different
chart groups, this function will give unpredictable results.
get_chartgrp(c("NJAA", "NJBA"))
#> NJAA NJBA
#> "nl2010" "nl2010"