Function Reference
A Glossary of every function covered on this site.
Import & Create
read_csv( )
Import a comma-separated file into R as a tibble.
read_excel( )
Import an Excel worksheet into R as a tibble.
seq( )
Generate numeric sequences.
tibble( )
Create a tidy table from vectors or values.
Inspect
glimpse( )
Inspect a data object by showing columns, data types, and example values.
head( )
Preview the first rows of an object.
Transform
arrange( )
Sort rows by one or more columns.
filter( )
Keep rows that match one or more logical conditions.
group_by( )
Group rows by one or more columns so dplyr verbs can work within each group.
if_else( )
Choose values row by row based on a condition.
lag( ) / lead( )
Shift a column’s values backward or forward by a chosen number of rows.
mutate( )
Add new columns or transform existing columns in a data frame.
pull( )
Pull one column out as a vector.
select( )
Keep only the columns you want.
slice( )
Keep or drop rows by position, including the top or bottom rows per group.
summarise( )
Create compact summary tables from a data frame or grouped data frame.
Model
coef( )
Extract estimated coefficients from fitted model objects.
lm( )
Fit linear regression models and extract slope, intercept, and model fit statistics.
nls( )
Fit custom non-linear models to data.
predict( )
Predict new values from a fitted model.
summary( )
Produce a compact summary of vectors, data frames, and model objects.
Visualize
ggplot( )
Create plots by mapping variables to visual aesthetics and adding layers.
Report
cat( )
Print values to the console as readable text, useful for clear labelled output.
round( )
Round numbers to a fixed number of decimal places.
signif( )
Round numbers to a chosen number of significant figures.