Learn R Programming

wrangle (version 0.6.4)

A Systematic Data Wrangling Idiom

Description

Supports systematic scrutiny, modification, and integration of data. The function status() counts rows that have missing values in grouping columns (returned by na() ), have non-unique combinations of grouping columns (returned by dup() ), and that are not locally sorted (returned by unsorted() ). Functions enumerate() and itemize() give sorted unique combinations of columns, with or without occurrence counts, respectively. Function ignore() drops columns in x that are present in y, and informative() drops columns in x that are entirely NA; constant() returns values that are constant, given a key. Data that have defined unique combinations of grouping values behave more predictably during merge operations.

Copy Link

Version

Install

install.packages('wrangle')

Monthly Downloads

240

Version

0.6.4

License

GPL-3

Maintainer

Tim Bergsma

Last Published

March 29th, 2024

Functions in wrangle (0.6.4)

informative

Drop columns in x that are entirely NA.
status.data.frame

Report status with respect to grouping variables.
na.data.frame

Show records with NA values of grouping variables.
dup.data.frame

Show records with duplicate or duplicated values of grouping variables.
dup

Show duplicate or duplicated elements.
sort.grouped_df

Arrange by groups.
weak.data.frame

Show records with NA, duplicate or duplicated values of grouping variables.
dupGroups

Calculate dupGroups.
safe_join

Join Data Safely
na

Show na elements.
detect

Sort column subsets.
safe_join.data.frame

Join Data Frames Safely
static

Find unique records for subset of columns with one unique value.
enumerate

Count unique combinations of items in specified columns.
weak

Show na, duplicate, or duplicated elements.
naGroups

Calculate naGroups.
naGroups.data.frame

Index records with NA values of grouping variables.
unsorted

Show unsorted elements.
dupGroups.data.frame

Index records with with duplicate or duplicated values of grouping variables.
unsorted.data.frame

Extract records whose relative positions would change if sorted.
ignore

Drop columns in x that are present in y.
constant.data.frame

Identify Constant Features of a Data Frame
constant

Identify Constant Features of an Object
misplaced.data.frame

Index records whose relative positions would change if sorted.
informative.data.frame

Drop columns in x that are entirely NA.
itemize

Show unique combinations of items in specified columns
status

Report status.
misplaced

Show misplaced elements.