Function reference
-
arrange()
- Arrange rows by variables
-
count()
tally()
add_count()
add_tally()
- Count observations by group
-
distinct()
- Subset distinct/unique rows
-
fill()
- Fill in missing values with previous or next value
-
filter()
- Return rows with matching conditions
-
mutate()
transmute()
- Create or transform variables
-
pull()
- Pull out a single variable
-
relocate()
- Change column order
-
rename()
rename_with()
- Rename columns
-
select()
- Subset columns using their names and types
-
summarise()
summarize()
- Reduce multiple values down to a single value
-
slice()
slice_head()
slice_tail()
slice_min()
slice_max()
slice_sample()
- Subset rows by position
-
unite()
- Unite Multiple Columns Into One
-
bind_cols()
bind_rows()
- Efficiently bind multiple
data.frame
s by row and column
-
anti_join()
semi_join()
- Filtering joins filter rows from
x
based on the presence or absence of matches iny
:
-
inner_join()
left_join()
right_join()
full_join()
- Mutating Joins
-
union_all()
- Union All
-
pivot_longer()
- Pivot data from wide to long
-
pivot_wider()
- Pivot data from long to wide
-
group_by()
ungroup()
- Group by one or more variables
-
group_by_drop_default()
- Default value for .drop argument of group_by
-
group_data()
group_rows()
group_indices()
group_vars()
groups()
group_size()
n_groups()
- Grouping metadata
-
group_split()
group_keys()
- Split data.frame by groups
-
n()
cur_data()
cur_data_all()
cur_group()
cur_group_id()
cur_group_rows()
cur_column()
- Context dependent expressions
-
nest_by()
- Nest By
-
with_groups()
- Perform an operation with temporary groups
-
between()
- Do values in a numeric vector fall in specified range?
-
case_when()
- A General Vetorised
if()
-
coalesce()
- Find first non-missing element
-
desc()
- Descending order
-
if_else()
- Vectorised if
-
n_distinct()
- Count the number of unique values in a set of vectors
-
na_if()
- Convert values to NA
-
near()
- Compare two numeric vectors
-
recode()
recode_factor()
- Recode values
-
replace_na()
- Replace missing values
-
cume_dist()
dense_rank()
min_rank()
ntile()
percent_rank()
row_number()
- Windowed Rank Functions
-
group_cols()
- Select Grouping Variables
-
peek_vars()
- Peek at variables in the selection context
-
starts_with()
ends_with()
contains()
matches()
num_range()
all_of()
any_of()
everything()
last_col()
- Select Helpers
-
where()
- Select variables with a function
-
`%>%`
- Forward-pipe operator
-
glimpse()
- Get a glimpse of your data
-
rownames_to_column()
rowid_to_column()
column_to_rownames()
remove_rownames()
has_rownames()
- Tools for working with row names
-
lst()
- Build a list