Publications by Rachel Saidi

Data 110 Household Debt

17.09.2020

Load the libraries # install.packages("tidyverse") # install.packages("zoo") library(tidyverse) ## -- Attaching packages --------------------------------------------------------------------- tidyverse 1.3.0 -- ## v ggplot2 3.3.2 v purrr 0.3.4 ## v tibble 3.0.2 v dplyr 1.0.0 ## v tidyr 1.1.0 v stringr 1.4.0 ## v readr 1.3...

3174 sym R (6355 sym/30 pcs) 3 img

Correlation, Scatterplots, and Regression Analysis

01.12.2020

Create a Scatterplot In this example, look at US crime rates at the state level, in 2005, with rates per 100,000 population for crime types such as murder, robbery, and aggravated assault, as reported by the Census Bureau. There are 7 crime types in total. The dataset is clean to begin with. library(readr) ## Warning: package 'readr' was built un...

10168 sym R (14464 sym/91 pcs) 27 img

UN Votes

17.01.2021

Introduction How do various countries vote in the United Nations General Assembly, how have their voting patterns evolved throughout time, and how similarly or differently do they view certain issues? Answering these questions (at a high level) is the focus of this analysis. Packages We will use the tidyverse, lubridate, and scales packages for ...

1625 sym R (1113 sym/3 pcs) 1 img

MATH 217 R Lab 1 in Base R

02.02.2021

Introduction to R and R Studio Load the Data from OpenIntro Website source("http://www.openintro.org/stat/data/arbuthnot.R") The Data: Dr. Arbuthnot’s Baptism Records arbuthnot <- arbuthnot See the dimensions of the data dim(arbuthnot) ## [1] 82 3 Display the names of the variables names(arbuthnot) ## [1] "year" "boys" "girls" Some exp...

1883 sym R (5311 sym/28 pcs) 5 img

temp lab 1

02.02.2021

Introduction to R Studio The function “source” allows r to connect with the data on the website source("http://www.openintro.org/stat/data/arbuthnot.R") The Data: Dr. Arbuthnot’s Baptism Records bla h bhlad Exercise 1 What command would you use to extract just the counts of girls baptized? Try it! arbuthnot$girls ## [1] 4683 4457 4102 4...

257 sym R (533 sym/3 pcs)

Heatmaps, Treemaps, Streamgraphs, and Alluvials

18.02.2021

So many ways to visualize data Treemaps Treemaps display hierarchical (tree-structured) data as a set of nested rectangles. Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches. A leaf node’s rectangle has an area proportional to a specified dimension of the data.[1] Often the leaf...

7079 sym R (16146 sym/70 pcs) 8 img

Working with Dates

26.05.2021

body { background-color: #e1dce8; } Working with Dates in R Adapted from Mark Niemann-Ross’s LinkdIn tutorial. All datasets for this tutorial may be found in the class datasets link: http://bit.ly/data110datasets Getting started - some basics Read in the dates_example.csv dataset. library(tidyverse) ## Warning: package 'tidyverse' was bui...

2885 sym R (14795 sym/147 pcs) 4 img

MATH 165 Predicted Grade Probabilities

29.04.2021

library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot2 3.3.3 v purrr 0.3.4 ## v tibble 3.1.0 v dplyr 1.0.5 ## v tidyr 1.1.3 v stringr 1.4.0 ## v readr 1.4.0 v forcats 0.5.1 ## -- Conflicts ------------------------------------------ tidyverse_conflicts() -- #...

11013 sym R (15663 sym/68 pcs) 6 img

Diamonds - Learn about Bar Graphs

26.01.2022

Install required packages #install.packages("tidyverse") library(tidyverse) #use library(package) every new document ## Warning: package 'tidyverse' was built under R version 4.1.2 ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot2 3.3.5 v purrr 0.3.4 ## v tibble 3.1.6 v dplyr 1.0.7 #...

579 sym R (2428 sym/26 pcs) 11 img

R-Lab 7 Inference for Numerical Data in Base R

28.10.2021

Change the Background Color of the main body of the document body { background-color: #e1dce8; } download.file("http://www.openintro.org/stat/data/nc.RData", destfile = "nc.RData") load("nc.RData") Exercise 1 What are the cases in this data set? How many cases are there in our sample? dim(nc) ## [1] 1000 13 Answer: There are 1000 cases i...

1748 sym R (7465 sym/50 pcs) 15 img