add_genomic_data: Merge the metadata and genomic_data by the col_merge.

View source: R/add_genomic_data.R

add_genomic_dataR Documentation

Merge the metadata and genomic_data by the col_merge.

Description

Merge the metadata and genomic_data by the col_merge. Metadata and genomic_data must have the same name of the column that will be used for merge.

Usage

add_genomic_data(
  metadata,
  genomic_data,
  var_names_merge,
  var_names_count,
  var_names_time
)

Arguments

metadata

the dataset metadata containing the column col_merge

genomic_data

The dataset containing the substitutions, deletions and missing data. The form of this dataset is based on the output of nextclade and differents mutation.

var_names_count

the name of the column used to desaggregate the metadata

var_names_time

the name of the column where the dates are found format = "%Y-%m-%d"

col_merge

The name of the column that will be used to merge the data

mutation

Value

The function adds according to col_merge the columns of mutations coming from genomic_data in metadata


maous1/Pandem2simulator documentation built on Feb. 11, 2023, 11:04 p.m.