Learn R Programming

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

wrangle (version 0.5.8)

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

License

GPL-3

Maintainer

Tim Bergsma

Last Published

January 6th, 2023

Functions in wrangle (0.5.8)

naGroups.grouped_df

Count records with NA values of grouping variables.
weak.grouped_df

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

Fetch the key.
safe_join.data.frame

Join Data Frames Safely
sort.grouped_df

Arrange by groups.
static

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

Join Data Safely
status

Report status.
weak

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

Find records whose relative positons would change if sorted.
status.grouped_df

Report status with respect to grouping variables.
unsorted

Show unsorted elements.
enumerate

Count unique combinations of items in specified columns.
detect

Sort column subsets.
constant

Identify Constant Features of an Object
dup.grouped_df

Show records with duplicate or duplicated values of grouping variables.
constant.data.frame

Identify Constant Features of a Data Frame
ignore

Drop columns in x that are present in y.
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.
informative.data.frame

Drop columns in x that are entirely NA.
informative

Drop columns in x that are entirely NA.
na.grouped_df

Show records with NA values of grouping variables.
naGroups

Calculate naGroups.
key.grouped_df

Fetch the key for a grouped_df as character vector
itemize

Show unique combinations of items in specified columns
na

Show na elements.