check_problems | R Documentation |
This function compares the animal ids in your data file to those in a problem index file. Any ids matched will be replaced with the corrected value in the problem index.
check_problems(r, problems)
r |
Data frame. A data frame of read data, with at least column
|
problems |
Character or Data frame. Either the name and location of a
.csv file containing the problem index or a data frame of the problem
index. In either case, the data must contain two columns:
|
This is useful for correcting ids that have been mangled by opening files in Word (where leading zeros are stripped) or for dealing with any odd problems in the field.
A data frame with corrected ids. Messages are printed to inform the user of any corrections made.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.