extract_atc_codes | R Documentation |
This function extracts ATC codes from a character vector containing text formatted as "ATC code (percentage)". It uses a regular expression to find the ATC codes before the parentheses. Function is for internal use for creating error messages in the package.
extract_atc_codes(text)
text |
a character vector containing text from which ATC codes need to be extracted. The expected format is "ATC code (percentage)". |
a character vector of extracted ATC codes. If no matches are found, it returns an empty character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.