add_metadata | R Documentation |
Add the metadata to a dataframe based on a common ID column.
add_metadata(data, metadata, cols)
data |
: A dataframe with ID and some other columns |
metadata: |
A metadata table with ID |
cols: |
Vector of column indices, indicating which columns of metadata to copy over. |
The original dataframe with the additional columns from the metadata.
data = tibble::tibble(Bird.ID = c("JS001", "JS002"),a = c(1,2), b = c(1,2))
metadata = tibble::tibble(Bird.ID = c("JS001", "JS002"), x= c(3,4), y = c(5,6), z = c(7,8))
add_metadata(data,metadata, col = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.