add_age_to_samples()
add_age_to_samples | R Documentation |
Add Age to Community Data
Description
Merges community data with age data based on dataset and sample names.
Usage
add_age_to_samples(data_community = NULL, data_ages = NULL)
Arguments
data_community
|
A data frame containing community data. Must include ‘dataset_name’ and ‘sample_name’ columns. |
data_ages
|
A data frame containing age data. Must include ‘dataset_name’ and ‘sample_name’ columns. |
Details
Performs a left join between community data and age data using ‘dataset_name’ and ‘sample_name’ as keys.
Value
A data frame with community data merged with the corresponding age data.