View source: R/library--data_prep--calculated_tools--date_vector_difference.R
DF_date_vector | R Documentation |
DF_date_vector
DF_date_vector(DF, date_vec, flag_vecs)
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 |
an equivilent DF where the 1 in the flag info is replaced with the date
data("Example_data", package = "Covid19Wastewater")
Example_data$flag = 1
head(DF_date_vector(Example_data, "date", "flag"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.