R Tips and Tricks
Intro Over the past few years studying statistics, I’ve learned a few tips and tricks with R and RStudio. Import multiple libraries at once Since R has some object-oriented goodness, importing multiple libraries all at once is possible in the following way. 1 2 pkgs <- c("ggplot2", "dplyr", "sp", "sf", "reticulate", ...) lapply(library, pkgs, character.only = TRUE) Also note that importing tidyverse package can come in handy....