get_chartgrp: Obtain the chart group from the chartcode

View source: R/get_chartgrp.R

get_chartgrpR Documentation

Obtain the chart group from the chartcode

Description

Obtain the chart group from the chartcode

Usage

get_chartgrp(chartcode = NULL)

Arguments

chartcode

Chart codes, usually constructed by create_chartcode(). If not specified, the function uses all chart codes.

Details

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.

Value

The function returns a named vector with length(chartcode) elements with the chart group names.

See Also

create_chartcode

Examples

get_chartgrp(c("NJAA", "NJBA"))

growthcharts/chartcatalog documentation built on Dec. 9, 2024, 8:43 p.m.