View source: R/check_helpers.R
find_multiple_atcs | R Documentation |
This function checks if each package has a single ATC code. It counts the unique ATC codes for each package and raises an error if any package has more than one ATC code. It is used internally in the package to ensure data integrity. Function is for internal use for creating error messages in the package.
find_multiple_atcs(atc_col, package_col)
atc_col |
a character vector containing ATC codes. |
package_col |
an integer vector containing package identifiers corresponding to the ATC codes. |
invisible NULL if all packages have a single ATC code, otherwise raises an error with a message listing the packages that have multiple ATC codes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.