Recode and Data Transformation Functions

Recode variables

Recode variable categories into new values

Dichotomize variables

Recode numeric variables into equal-ranged groups

Group near elements of string vectors

Split numeric variables into smaller groups

Standardize and center variables

Data Frame Transformation Functions

Merges multiple imputed data frames into a single data frame

Rotate a data frame

Adding, Replacing and Removing Variables or Cases from Data Frames

Add or replace data frame columns

Merge labelled data frames

Add variables or cases to data frames

Move columns to other positions in a data frame

Return or remove variables or observations that are completely missing

Remove variables from a data frame

Rename variables

Variable Transformation

Convert numeric vectors into factors associated value labels

Convert variable into character vector and replace values with associated value labels

Convert variable into factor and keep value labels

Convert variable into factor with associated value labels

Convert factors to numeric variables

Creating New Variables

Compute group-meaned and de-meaned variables

Split (categorical) vectors into dummy variables

Variable Utility Functions

Change reference level of (numeric) factors

Round numeric variables in a data frame

Shorten character strings

Convert infiite or NaN values into regular NA

Missing Values

Replace NA with specific values

Replace specific values in vector with NA

Finding Variables and Values

Find variable by name or label

Check if string contains pattern

Find start and end index of pattern in string

Find partial matching and close distance elements in strings

Descriptive and Summary Statistics

Frequency table of tagged NA values

Basic descriptive statistics

Flat (proportional) tables

Frequency table of labelled variables

Count row or column indices

Row sums and means for data frames

Properties of Data Frames or Variables

Check if vector only has NA values

Return or remove variables or observations that are completely missing

Check if variables or cases have missing / infinite values

Check Variables

Check whether two factors are crossed or nested

Check whether string, list or vector is empty

Check whether value is even or odd

Check if a variable is of (non-integer) double type or a whole number

Check whether a factor has numeric levels only

Utility Functions

Value matching

Format numbers

Create recode pattern for 'rec' function

Reshape data into long format

Sequence generation for column or row counts of data frames

Spread model coefficients of list-variables into columns

Clean values of character vectors.

Convert wide data to long format

Trim leading and trailing whitespaces from strings

Return the typical value of a vector

Determine variable type

Insert line breaks in long labels