cllr_add_id | R Documentation |
If your data does not have unique identifiers for each animal cllr_add_id will create that column and insert values you provide.
cllr_add_id(x, id_vals)
x |
object inherting from data.frame |
id_vals |
values (character) to include in a newly created id column, these are the unique identifier for each individual |
When adding a new column to data using cllr_add_id the user should supply either a length 1 character string or a character vector equal in length to the number of observations in the data. The latter is not recommended.
data.frame
cllr_rename_id
# Add unique identifiers
df <- data.frame(val = 1:3)
cllr_add_id(df, "1A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.