add_metadata: add_metadata function

Description Usage Arguments Value Examples

View source: R/add_metadata.R

Description

Add the metadata to a dataframe based on a common ID column.

Usage

1
add_metadata(data, metadata)

Arguments

data

: A dataframe with ID and some other columns

metadata:

A metadata table with ID

Value

The original dataframe with the additional columns from the metadata.

Examples

1
2
data = tibble::tibble(x = c(1,2), ID = c("JS001", "JS002"))
metadata = tibble::tibble(y = c(3,4), ID = c("JS001", "JS002"))

deponent-verb/birdsong.tools documentation built on Dec. 19, 2021, 10:12 p.m.