guess_time_only: Guess time variables based on naming pattern
Description
This is for repairing data with time variables with appended "1970-01-01"
Usage
guess_time_only(
data,
validate.time = FALSE,
time.var.sel.pos = "[Tt]i[d(me)]",
time.var.sel.neg = "[Dd]at[eo]"
)
Value
data.frame or tibble
Arguments
- data
data.frame or tibble
- validate.time
Flag to validate guessed time columns
- time.var.sel.pos
Positive selection regex string passed to
`gues_time_only_filter()` as sel.pos.
- time.var.sel.neg
Negative selection regex string passed to
`gues_time_only_filter()` as sel.neg.
Examples
Run this coderedcapcast_data |> guess_time_only(validate.time = TRUE)
Run the code above in your browser using DataLab