clean_data_help: Functions to Interactively Clean Data Frames

View source: R/clean_data.R

clean_data_helpR Documentation

Functions to Interactively Clean Data Frames

Description

This family of functions clean a data frame.

Usage

clean_data_help()

clean_data(x, clear = TRUE)

clean_select(x, clear = TRUE, .log = F)

clean_rename(x, clear = TRUE)

clean_recode(x, clear = TRUE)

clean_remode(x, clear = TRUE)

clean_na(x, clear = TRUE)

Arguments

x

A data frame.

clear

A logical scalar indicating whether to clear the console at the start of each data cleaning step.

Value

A data frame.

Functions

  • clean_data(): Clean a data frame by selecting variables to retain, optionally renaming variables, optionally recoding NA and other values, optionally coercing variables to a specific mode, and optionally dropping cases with NA values.

  • clean_select(): Select variables from a data frame to be retained.

  • clean_rename(): Optionally rename variables in a data frame.

  • clean_recode(): Optionally recode NA and other values of variables.

  • clean_remode(): Optionally coerce variables in a data frame to a specific mode.

  • clean_na(): Optionally drop cases with NA values.


j-martineau/uj documentation built on Sept. 14, 2024, 4:40 a.m.