View source: R/cllr_rename_id.R
cllr_rename_id | R Documentation |
The purpose of cllr_rename_id is to provide a simple utility to change a column name to conform to this package's expectation that individual identifiers are stored in a column called id. If your data does not have unique identifiers for each animal cllr_add_id will create that column and insert provided values.
cllr_rename_id(x, id_col)
x |
object inherting from data.frame |
id_col |
unquoted name of column containing unique identifier for each individual |
data.frame
cllr_add_id
# Unquoted input when renaming id column
df <- data.frame(val = 1:3, animal_name = 1)
cllr_rename_id(df, animal_name)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.