R/utils-publogs.R

Defines functions pub_tidy

# publication logs tidying ------------------------------------------------

pub_tidy <- function(df, tidy_style) {
  if (nrow(df) > 0) {
    df$publicationDate._value <- as.POSIXct(df$publicationDate._value)

    df$publicationDate._datatype <- "POSIXct"
  }

  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.