Publications by Jay Lee
Week2 Assignment
Requirement1 Summary of raw data urlfile <-'https://raw.githubusercontent.com/jayleecunysps/AssignmentforSPS/main/Arrests.csv' #bonus library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, set...
471 sym R (6198 sym/21 pcs)
Week3 Assignment
Arrests for Marijuana Possession in Toronto Project Background and Description: This project uses data on police treatment of individuals arrested in Toronto for simple possession of small quantities of marijuana. The data are part of a larger data set featured in a series of articles in the Toronto Star newspaper. Full information at: check ...
2958 sym R (3917 sym/16 pcs) 5 img
607week1
week 1 assignment Loading the data #load the packages library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.5 ✓ purrr 0.3.4 ## ✓ tibble 3.1.6 ✓ dplyr 1.0.7 ## ✓ tidyr 1...
143 sym R (8889 sym/17 pcs)
606lab1
The RStudio Interface The goal of this lab is to introduce you to R and RStudio, which you’ll be using throughout the course both to learn the statistical concepts discussed in the course and to analyze real data and come to informed conclusions. To clarify which is which: R is the name of the programming language itself and RStudio is a conven...
18149 sym R (7400 sym/60 pcs) 9 img
Document
load libary and apikey in backend look at the data and pull the useful info nyturl <- paste("https://api.nytimes.com/svc/topstories/v2/science.json?api-key=", apikey, sep='') scienceData <- fromJSON(nyturl) #Look at what is useful scienceData <- scienceData %>% as.data.frame() %>% select(-results.multimedia) scienceData <- scienceData %>% s...
781 sym R (8555 sym/8 pcs) 2 img
Document
Data Preparation # load data hate_url<- "https://raw.githubusercontent.com/fivethirtyeight/data/master/hate-crimes/hate_crimes.csv" hate_url <-read.csv(hate_url) Research question You should phrase your research question in a way that matches up with the scope of inference your dataset allows for. Does unemployment drive hate crimes as well? Is...
2018 sym R (3519 sym/23 pcs) 2 img
Document
##load libary library(XML) library(RCurl) library(jsonlite) library(DT) ##HTML htmlurl<- getURLContent("https://raw.githubusercontent.com/jayleecunysps/AssignmentforSPS/main/favbook.html") html <-readHTMLTable(htmlurl) html<-html[[1]] datatable(html) XML xmlurl<-getURL("https://raw.githubusercontent.com/jayleecunysps/AssignmentforSPS/main/favboo...
43 sym R (1827 sym/10 pcs)
Document
If you have access to data on an entire population, say the opinion of every adult in the United States on whether or not they think climate change is affecting their local community, it’s straightforward to answer questions like, “What percent of US adults think climate change is affecting their local community?”. Similarly, if you had dem...
11030 sym R (1697 sym/14 pcs) 1 img 1 tbl
607w5
load the library library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.5 ✓ purrr 0.3.4 ## ✓ tibble 3.1.6 ✓ dplyr 1.0.7 ## ✓ tidyr 1.1.4 ✓ stringr 1.4.0 ## ✓ readr ...
1655 sym R (3293 sym/15 pcs)
606lab3
The Hot Hand Basketball players who make several baskets in succession are described as having a hot hand. Fans and players have long believed in the hot hand phenomenon, which refutes the assumption that each shot is independent of the next. However, a 1985 paper by Gilovich, Vallone, and Tversky collected evidence that contradicted this belief ...
11761 sym R (4091 sym/29 pcs) 2 img