DF_date_vector: DF_date_vector

View source: R/library--data_prep--calculated_tools--date_vector_difference.R

DF_date_vectorR Documentation

DF_date_vector

Description

DF_date_vector

Usage

DF_date_vector(DF, date_vec, flag_vecs)

Arguments

DF

DF containing the other vectors as columns

date_vec

column vec name with date dataType

flag_vecs

a vector of column vec names each with binary flagging info

Value

an equivilent DF where the 1 in the flag info is replaced with the date

Examples

data("Example_data", package = "Covid19Wastewater")
Example_data$flag = 1
head(DF_date_vector(Example_data, "date", "flag"))

Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.