Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

hansard (version 0.5.0)

hansard_tidy: A function to make the results of calls to the API easier to work with.

Description

A function to make the results of calls to the API easier to work with, mostly though fixing variable names, which by default contain non alpha-numeric characters and appear to use an inconsistent/idiosyncratic naming convention, at least by the standards of the various naming conventions used in R. Dates and datetimes are converted to POSIXct class. Some extra URL data included in the API is also stripped out.

Usage

hansard_tidy(df, tidy_style = c("snake_case", "camelCase", "period.case"))

Arguments

df

The tibble to tidy.

tidy_style

The style to tidy variable names to.

Value

A tidied tibble