Learn R Programming

⚠️There's a newer version (0.6.4) of this package.Take me there.

wrangle (version 0.5.10)

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.5.10

License

GPL-3

Maintainer

Tim Bergsma

Last Published

January 10th, 2023

Functions in wrangle (0.5.10)

itemize

Show unique combinations of items in specified columns
informative

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

Drop columns in x that are entirely NA.
key

Fetch the key.
key.grouped_df

Fetch the key for a grouped_df as character vector
naGroups.grouped_df

Count records with NA values of grouping variables.
safe_join

Join Data Safely
static

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

Report status.
na.grouped_df

Show records with NA values of grouping variables.
status.grouped_df

Report status with respect to grouping variables.
unsorted

Show unsorted elements.
naGroups

Calculate naGroups.
na

Show na elements.
weak

Show na, duplicate, or duplicated elements.
unsorted.grouped_df

Find records whose relative positons would change if sorted.
safe_join.data.frame

Join Data Frames Safely
sort.grouped_df

Arrange by groups.
weak.grouped_df

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

Count records with with duplicate or duplicated values of grouping variables.
constant.grouped_df

Identify Constant Features of a Grouped Data Frame
dup

Show duplicate or duplicated elements.
dupGroups

Calculate dupGroups.
detect

Sort column subsets.
ignore

Drop columns in x that are present in y.
constant

Identify Constant Features of an Object
constant.data.frame

Identify Constant Features of a Data Frame
dup.grouped_df

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

Count unique combinations of items in specified columns.