auto_transform: Automatically Transform Data Set

View source: R/data.frame.R

auto_transformR Documentation

Automatically Transform Data Set

Description

This function transforms a data.frame by guessing the right data classes and applying them, using readr::parse_guess() and cleaner functions such as cleaner::clean_Date().

Usage

auto_transform(
  x,
  datenames = "en",
  dateformat = "yyyy-mm-dd",
  timeformat = "HH:MM",
  decimal.mark = ".",
  big.mark = "",
  timezone = "",
  na = c("", "NULL", "NA", "<NA>"),
  snake_case = FALSE,
  ...
)

Arguments

x

a data.frame

datenames

language of the date names, such as weekdays and months

dateformat

expected date format, will be coerced with format_datetime()

timeformat

expected time format, will be coerced with format_datetime()

decimal.mark

separator for decimal numbers

big.mark

separator for thousands

timezone

expected time zone

na

values to interpret as NA

snake_case

apply snake case to the column names

...

not used as the time, allows for future extension


certe-medical-epidemiology/certetoolbox documentation built on April 17, 2025, 3:24 a.m.