Joscelin’s Favorite Packages & Functions
acadyr: Work with Financial and Academic Years in R 💯
By Wurli
Added Thu Feb 20, 2025
What is this?
The acadyr package provides utility functions for creating and working with financial and academic years in R. It addresses challenges associated with non-calendar year types, such as differing start dates and formatting complexities. The package allows users to define financial or academic years with customizable start dates, facilitating seamless integration into data analysis workflows. Additionally, acadyr ensures compatibility with visualization tools like ggplot2, enabling clear and accurate representation of data categorized by these non-standard years.
- Link to package here: https://wurli.github.io/acadyr/
Analyzing International Survey Data with the pewmethods R Package
Added Thu Feb 20, 2025
What is this?
This article introduces the pewmethods R package, designed to facilitate the analysis of international survey data. The package streamlines the process of converting individual-level data to country-level summaries, enabling researchers to efficiently analyze and interpret survey results. By providing tools for data transformation and weighting, pewmethods enhances the accuracy and comparability of cross-national survey analyses.
Arrow: Fast Loading and Processing of Large Data
Added Thu Feb 20, 2025
What is this?
The arrow package, created by Ursa Labs, allows for fast loading and processing of large datasets in R. It supports efficient data interchange, making it an essential tool for handling large-scale data workflows
- Link to package: https://arrow.apache.org/docs/r/
colorblindr by Claire D. McWhite & Claus O. Wilke 💯
What is this?
Simulate colorblindness in production-ready R figures to ensure accessibility in visualizations.
Link to repo: https://github.com/clauswilke/colorblindr
Link to simulator: http://hclwizard.org/cvdemulator/
correlation: Perform Correlation Analysis
Added Feb 2nd, 2022
What is this?
Performs a correlation analysis with various statistical measures.
- Link to package: https://easystats.github.io/correlation/reference/correlation.html
DataEditR by Dillon Hammill 💯
What is this?
DataEditR is an interactive tool for manual data entry and editing in R. Built on shiny and rhandsontable, it makes filtering and editing data easier, especially for users with limited coding experience.
- Link to package: https://dillonhammill.github.io/DataEditR/
ellmer: Chat with Large Language Models 💯
By Hadley Wickham
Added Thu Feb 20, 2025
What is this?
ellmer is an R package that facilitates interaction with large language models (LLMs) from various providers directly within R. It supports multiple LLM providers, including OpenAI, Anthropic’s Claude, Google Gemini, and more. Key features of ellmer include streaming outputs, tool/function calling, and structured data extraction, enhancing the integration of LLM capabilities into R workflows.
- Link to package here: https://ellmer.tidyverse.org/
esquisse add-in
Added Feb 2nd, 2022
What is this?
An RStudio add-in for interactively exploring and visualizing data with ggplot2. Users can create and export plots with ease.
Link to package: https://github.com/dreamRs/esquisse
Online documentation: https://dreamrs.github.io/esquisse/index.html
fable: Time Series Forecasting Models
What is this?
Fable provides a collection of time series forecasting models that integrate with the tidyverse framework, making model evaluation and visualization straightforward.
- Link to package: https://github.com/tidyverts/fable
funneljoin: Time-Based Joins for Event Sequences
What is this?
Analyze behavior funnels by performing time-based joins with funneljoin.
Link to blog: https://hookedondata.org/introducing-the-funneljoin-package/
Link to package: https://github.com/robinsones/funneljoin
grateful: Facilitate Citation of R Packages 💯
Added Mon Apr 24, 2023
What is this?
grateful makes it easy to cite R and its packages in analyses by generating a BibTeX file of citations for used packages.
- Link to package: https://pakillo.github.io/grateful/
parameters: Process Statistical Model Parameters 💯
What is this?
Provides tools for computing p-values, confidence intervals, Bayesian indices, and variable selection across various statistical models.
- Link to package: https://easystats.github.io/parameters/
pipediff 💯💯 [Great for Teaching]
What is this?
Overrides %>%
in the caller environment to display differences between pipe steps. Useful for debugging and teaching.
- Link to package: https://github.com/moodymudskipper/pipediff
session_info: Print Session Information
Added Feb 2nd, 2022
What is this?
Provides detailed session information, useful for debugging and reproducibility.
- Link to function: https://rdrr.io/cran/sessioninfo/man/session_info.html
*** What I like to use if I want a list of all packages with an asterisk if I have them in this script: library(sessioninfo)
library(sessioninfo)
session_info(pkgs="!loaded", to_file = TRUE)
** What I like to use for reports and sharing scripts:
library(sessioninfo)
session_info(pkgs="!attached", to_file = TRUE)
tidycountries: Access and Manipulate Country-Level Data 💯
Added Thu Feb 20, 2025
What is this?
Provides country-level data (names, regions, populations, etc.) in a tidy format for easy integration with tidyverse workflows.
- Link to package: https://denironyx.github.io/tidycountries/
widyr: Widen, Process, and Re-Tidy a Dataset 💯
What is this?
Transforms datasets between wide and tidy formats, enabling co-occurrence counts, correlations, and clustering operations.
- Link to package: https://github.com/dgrtwo/widyr