Skip to content

Latest commit

 

History

History
53 lines (48 loc) · 2.2 KB

README.md

File metadata and controls

53 lines (48 loc) · 2.2 KB

How to Install R Studio

Installation Steps it is very important to install it in order, first R, then R Studio:
  1. Install R from the download link. You can pick which one to choose, for example I chose the Duke Mirror https://archive.linux.duke.edu/cran/
  2. Install R Studio (free desktop version) AFTER you installed R, from the link https://www.rstudio.com/products/rstudio/download/. You will only use R Studio but need to have both on your computer.
How to use R Studio
Installing Packages
  1. Open R Studio from applications folder
    R Studio Layout

  2. Create a new project
    Steps

  3. Click on “File/New File/R script”:
    New Script

  4. Commands in R Studio can be written directly into the console area (bottom left), or in the script. To run a completed command press Control + Enter.

  5. Install packages by typing the code in the script and run the code

install.packages("tidyverse") #data wrangling
install.packages("tidyr") #data wrangling
install.packages("tidytext") #text analysis
install.packages("dplyr") #data wrangling
install.packages("tm") #topic modeling
install.packages("topicmodels") #topic modeling
install.packages("quanteda") #text analysis
install.packages("lubridate") #dates
install.packages("ggplot2") #visualizations
install.packages("ggthemes") #visualizations
install.packages("scales") #visualizations
install.packages("wesanderson") #visualizations
  1. Load installed packages into library
library(tidyverse)
library(tidytext)
library(tidyr)
library(dplyr)
library(tm)
library(topicmodels)
library(quanteda)
library(lubridate)
library(ggplot2)
library(ggthemes)
library(scales)
library(wesanderson)
  1. For help type ? followed by the command and run. For shortcuts in R Studio, please see the following document
?merge
  1. Now you are ready to work in R Studio!