🔷 Glossary

R Function Definition
? and help() help you to get more info on a specific function
View() command to open and manually inspect data in the viewer
across() apply the same function to several variables
add_index() build mean/sum index from variables
aes(x, y, fill, color, etc.) maps data to visual elements
arrange() arrange data in descending or ascending order
case_when() transform existing variables based on multiple conditions
class() check what type of data an object contains
facet_wrap() splits a graph into seperate panels
filter() filter specific observations, often based on conditions
geom_bar() creates a bar chart for counts or values
geom_boxplot() creates a box plot showing a distribution
geom_density creates a smoothed curve of a numeric distribution
geom_line() creates a line graph connecting observations across x-values
geom_point() creates a scatter plot using points
get_reliability() get internal consistency for an index
ggplot() creating a graph
ggsave saves graphs as image files
glimpse() inspect the structure of a dataset
head() show first rows of a dataset
if_else() transform existing variables based on two conditions
install.packages() installs packages on your machine - only has to be run once
is.na() for every value in a variable, checks whether it contains missing data (TRUE) or not (FALSE)
labs() adds titles and labels to a graph
library() loads existing packages - has to be run everytime you reopen R Studio
mutate() create new variables
na_if() transform specific values to NA
na_if() setting specific values to missing (NA)
ncol() get the number of columns for a dataset
nrow() get the number of rows for a dataset
read_csv(), read_csv2() read in tabular data (e.g., .csv file)
rename() rename variables
save.image daves your working directory
select() select specific variables
sum() creates sums for a variable
summarise() creates summary statistics for a dataset
theme_minimal(), theme_classic(), theme_light() changes the design of your graph
|> the pipe, pushes data (left) through the pipe for transformation (right)