Learn R Programming

Covid19Wastewater (version 1.0.1)

DF_date_vector: DF_date_vector

Description

DF_date_vector

Usage

DF_date_vector(DF, date_vec, flag_vecs)

Value

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

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

Examples

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

Run the code above in your browser using DataLab