Skip to contents

Format metadata.tar.x file downloaded from GISAID with some missing columns

Usage

FormatGISAIDMetadata(
  df,
  collection_col = "Collection date",
  submission_col = "Submission date"
)

Arguments

df

GISAID metadata dataframe

collection_col

Name of column representing date of collection (Collection date)

submission_col

Name of column representing date of submission (Submission date)

Value

A data frame with following extra columns: DateCollected, MonthYearCollected, YearCollected, MonthCollected, WeekCollected DateCollectedNumeric, MonthYearCollectedNumeric DateSubmitted, MonthYearSubmitted, YearSubmitted, MonthSubmitted, WeekSubmitted DateSubmittedNumeric, MonthYearSubmittedNumeric