LogoLogo
Computing Skills
Computing Skills
  • Introduction
  • File Directory Structures
  • Text Editors
  • GitHub
  • Unix
  • Julia
    • Installation
    • REPL
    • Basic Syntax
    • Numbers and Math
    • Strings and Characters
    • Regular Expressions
    • Control Flow
    • Collections and Data Structures
    • File Input/Output
    • Packages
    • DataFrames
    • JuliaPlots
    • ScikitLearn.jl
    • JuliaStats
    • Exercises
  • Python
    • Installation
    • REPL
    • Basic Syntax
    • Numbers and Math
    • Strings and Characters
    • Regular Expressions
    • Control Flow
    • Collections and Data Structures
    • File Input/Output
    • Packages
    • Data Frames and Data Manipulation
  • R
    • Installation
    • REPL
    • Basic Syntax
    • Numbers and Math
    • Strings and Characters
    • Regular Expression
    • Control Flow
    • Collections and Data Structures
    • File Input/Output
    • Packages
    • DataFrames
    • Data Analysis and Manipulation
Powered by GitBook
On this page
  • Installing Packages
  • Helpful Packages
  • Resources
Export as PDF
  1. R

Packages

PreviousFile Input/OutputNextDataFrames

Last updated 6 months ago

In computer programming, a package is a collection of modules or programs that are often published as tools for a range of common use cases, such as text processing and doing math. Programmers can install these packages and take advantage of their functionality within their own code.

This page includes instructions for installing packages in R and a description of some of R's most frequently used packages.

Installing Packages

To install a package in R, you can either:

  • Use the install.packages("PackageName") function if you have the package downloaded locally on your machine

  • Or if you are using RStudio, you can use Tools > Install packages, enter in the package name and click Install

Once you install the package, you have to load it into your library using the libary(PackageName) function.

#Installing a package downloaded locally
install.packages("tidyverse")

#Once the package is installed, you have to load it
library(tidyverse)

Helpful Packages

In R, tidyverse is one of the most popular packages, as it contains an assortment of packages used for data science, such as:

  • , used to create graphics and data visualization

  • , contains functions used for data manipulation, like mutate() and filter()

  • , used for data organization and cleaning

  • , an optimized dataframe visualizer

  • , can be used to input Excel files in .xlsx format into R

Resources

R Documentation:

ggplot2
dplyr
tidyr
tibble
readxl
Packages
Tidyverse