sample.data.environment |> Datetime2Time()
#more than one POSIX col
sample.data.environment |>
dplyr::mutate(Datetime2 = lubridate::POSIXct(1)) |>
Datetime2Time()
#only converting one of them
sample.data.environment |>
dplyr::mutate(Datetime2 = lubridate::POSIXct(1)) |>
Datetime2Time(Datetime)
#if uncertain whether column exists
sample.data.environment |>
Datetime2Time(dplyr::any_of("Datetime3"))
Run the code above in your browser using DataLab