R/utils-epetition.R

Defines functions epetition_tibble_tidy

### tidy function for epetition_tibble

epetition_tibble_tidy <- function(df, tidy_style) {
  if (nrow(df) > 0) {
    df$created._value <- gsub("T", " ", df$created._value)

    df$created._value <- lubridate::parse_date_time(
      df$created._value, "Y-m-d H:M:S"
    )

    df$created._datatype <- "POSIXct"

    df$status <- as.factor(df$status)
  }

  df <- hansard_tidy(df, tidy_style)

  df
}

Try the hansard package in your browser

Any scripts or data that you put into this service are public.

hansard documentation built on Nov. 13, 2019, 5:06 p.m.