tidytable helpers |
|
|---|---|
Improved data.table::fcase() |
|
Pipeable data.table call |
|
Convert character and factor columns to dummy variables |
|
notin operator |
|
dplyr |
|
Core dplyr verbs |
|
Arrange/reorder rows |
|
Filter rows on one or more conditions |
|
Add/modify/delete columns |
|
Select or drop columns |
|
Aggregate data using summary statistics |
|
Other dplyr functions |
|
Arrange by a selection of variables |
|
Bind data.tables by row and column |
|
Case when |
|
Count observations by group |
|
Select distinct/unique rows |
|
Split data frame by groups |
|
Fast ifelse |
|
Get lagging or leading values |
|
|
|
Join two data.tables together |
Mutate multiple columns simultaneously |
|
Pull out a single variable |
|
Relocate a column to a new position |
|
Rename variables by name |
|
Rename multiple columns |
|
|
|
Choose rows in a data.table |
Summarize multiple columns |
|
Add new variables and drop all others |
|
tidyr |
|
Complete a data.table with missing combinations of data |
|
Create a data.table from all unique combinations of inputs |
|
Drop rows containing missing values |
|
Expand a data.table to use all combinations of values |
|
Create a data.table from all combinations of inputs |
|
Fill in missing values with previous or next value |
|
Nest data.tables |
|
Pivot data from wide to long |
|
Pivot data from long to wide |
|
Replace missing values |
|
Separate a character column into multiple columns |
|
Separate a collapsed column into multiple rows |
|
Uncount a data.table |
|
Unite multiple columns by pasting strings together |
|
Unnest a nested data.table |
|
purrr |
|
|
|
Apply a function to each element of a vector or list |
reexportsThese functions are reexported from |
|
Objects exported from other packages |
|
tidytable constructors
A tidytable is simply a data.table with nice printing features. As such it can be used exactly like a data.table would be used. Note: All tidytable functions automatically convert data.frame/tibble inputs to a data.table/tidytable. |
|
Coerce an object to a data.table/tidytable |
|
Test if the object is a tidytable |
|
Build a data.table/tidytable |
|