Data frame verbs |
|
---|---|
RowsVerbs that principally operate on rows. |
|
Order rows using column values |
|
Keep distinct/unique rows |
|
Keep rows that match a condition |
|
|
Subset rows using their positions |
ColumnsVerbs that principally operate on columns. |
|
Get a glimpse of your data |
|
Create, modify, and delete columns |
|
Extract a single column |
|
Change column order |
|
Rename columns |
|
Keep or drop columns using their names and types |
|
GroupsVerbs that principally operate on groups of rows. |
|
Count the observations in each group |
|
Group by one or more variables |
|
Per-operation grouping with |
|
Group input by rows |
|
Summarise each group down to one row |
|
Transform each group to an arbitrary number of rows |
|
|
Information about the "current" group or variable |
Data framesVerbs that principally operate on pairs of data frames. |
|
Bind multiple data frames by column |
|
Bind multiple data frames by row |
|
|
Set operations |
Mutating joins |
|
Nest join |
|
Filtering joins |
|
Cross join |
|
Join specifications |
|
|
Manipulate individual rows |
Multiple columnsPair these functions with |
|
Apply a function (or functions) across multiple columns |
|
Combine values from multiple columns |
|
Select a subset of columns |
|
Vector functionsUnlike other dplyr functions, these functions work on individual vectors, not data frames. |
|
Detect where values fall in a specified range |
|
A general vectorised |
|
A general vectorised if-else |
|
Find the first non-missing element |
|
Generate a unique identifier for consecutive combinations |
|
Cumulativate versions of any, all, and mean |
|
Descending order |
|
Vectorised if-else |
|
Compute lagged or leading values |
|
Count unique combinations |
|
Convert values to |
|
Compare two numeric vectors |
|
Extract the first, last, or nth value from a vector |
|
Bucket a numeric vector into |
|
A helper function for ordering window function output |
|
Proportional ranking functions |
|
Recode values |
|
Integer ranking functions |
|
Built in datasets |
|
Band membership |
|
Starwars characters |
|
Storm tracks data |
|
Grouping helpersThis (mostly) experimental family of functions are used to manipulate groups in various ways. |
|
Select grouping variables |
|
Apply a function to each group |
|
Trim grouping structure |
|
SupersededSuperseded functions have been replaced by new approaches that we believe to be superior, but we don’t want to force you to change until you’re ready, so the existing functions will stay around for several years. |
|
Sample n rows from a table |
|
Select top (or bottom) n rows (by value) |
|
Operate on a selection of variables |
|
Apply predicate to all variables |
|
Select variables |
|
Perform an operation with temporary groups |
|
Remote tables |
|
Copy tables to same source, if necessary |
|
Force computation of a database query |
|
Copy a local data frame to a remote src |
|
Flag a character vector as SQL identifiers |
|
Explain details of a tbl |
|
Create a table from a data source |
|
SQL escaping. |