easycleaning: Functions to help with Data Cleaning

Description Usage Arguments Functions

Description

Functions to help with Data Cleaning

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
CleanCols(DT)

CleanRows(DT, cols = NULL, index = FALSE)

ddup(DT, cols = NULL, verbose = TRUE)

Booleanize(DT = NULL, cols = NULL, value = NULL, not = FALSE)

RoundCols(DT, digits = 2, igncols = NULL, cols = NULL, b_skip = FALSE,
  b_copy = TRUE)

p_setcolorder(DT, cols = NULL, aslast = TRUE, verbose = FALSE)

Arguments

DT

A data table to operate on

cols

columns of a data.table to focus the operation on

index

In the case of CleanRows, if index is TRUE, an Index column will be created to track which rows were removed

verbose

A boolean indicating whether to print information on the console

value

In the case of booleanize, a value to look for throughout the table

not

A boolean. Negates the output of booleanize

digits

A numeric indicating the number of digits to round in RoundCols

igncols

A character vector indicating which columns to ignore

b_skip

A boolean indicating whether to skip non-numeric columns that RoundCols encounters

b_copy

A boolean indicating whether to make a copy of the data, or operate on by reference

aslast

A boolean indicating whether arrange the non-order columns before or after (asLast = TRUE) the ordered ones

Functions


bfatemi/easydata documentation built on Oct. 7, 2019, 4:35 p.m.