Publications by Dennis Pong

Data 607 - HW3

18.02.2020

1. Using the 173 majors listed in fivethirtyeight.com’s College Majors dataset [https://fivethirtyeight.com/features/the-economic-guide-to-picking-a-college-major/], provide code that identifies the majors that contain either “DATA” or “STATISTICS” library(httr) url <- "https://raw.githubusercontent.com/fivethirtyeight/data/master/col...

2088 sym R (1938 sym/10 pcs)

FiveThirtyEight.com Data Mgmt

03.02.2020

Overview Article URL: https://fivethirtyeight.com/features/introducing-raptor-our-new-metric-for-the-modern-nba/ The article is about introducing the new metric for the modern NBA called RAPTOR, which is an acronym for Robust Algorithm (using) Player Tracking (and) On/Off Ratings. RAPTOR loves Steph, Harden, CP3, and Kawhi. RAPTOR ratings for pla...

982 sym

Week 7 Assignment - Working with XML and JSON in R (D607)

16.03.2020

Loading the required libraries #install.packages("XML") require(XML) ## Loading required package: XML library(RCurl) library(XML) library(jsonlite) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## in...

1174 sym R (1881 sym/20 pcs) 3 tbl

Tidyverse -- rename, top_frac, tally, and count

30.03.2020

The Data I’ll be using the data from SARS 2003 Outbreak Complete Dataset from Kaggle. The raw github link is here Loading Packages library(tidyverse) ## ── Attaching packages ───────────────────────────────────────────────────────�...

1385 sym R (7915 sym/28 pcs)

Sentiment Analysis with Tidy Data - Week 10 Assignment (D607)

08.04.2020

# install.packages("gutenbergr") library(tidyverse) ## ── Attaching packages ────────────────────────────────────────────────────────────────────────────────────────�...

2405 sym R (21480 sym/107 pcs) 12 img

Final Project 4 - Data 606

19.05.2020

Set the right working directory knitr::opts_chunk$set(echo = TRUE) options(warn=-1) # set wd setwd('/Users/dpong/Data 606/Project') Library loading library(readr) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base...

6949 sym R (15449 sym/74 pcs) 6 img

Data 624 Homework 1

06.09.2020

Code Show All Code Hide All Code DATA 624 Homework 1 DATA 624 Homework 1 Exercise 2.10.1 Exercise 2.10.2 Exercise 2.10.3 Exercise 2.10.6 Dennis Pong 2020-09-06 # removed echo = FALSE upstairs to enable collapseable code chunks library(knitr) library(rmdformats) ## Global options options(max.print="31") # opts_chunk$set(echo=FALSE, # ...

8735 sym R (3305 sym/70 pcs) 31 img

Data 605 - Assignment 1

30.08.2020

#1 u <- matrix (c(0.5,0.5),nrow=1,ncol=2,byrow=T) v <- matrix (c(3,-4),nrow=2,ncol=1,byrow=T) u %*% v ## [,1] ## [1,] -0.5 #2 cat("lengths of u is:", len_u <- sqrt(u[1]^2 + u[2]^2), "\n") ## lengths of u is: 0.7071068 cat("lengths of v is:", len_v = sqrt(v[1]^2+v[2]^2)) ## lengths of v is: 5 #3 # since we're no longer dealing square matrix, ...

155 sym R (2345 sym/15 pcs)

Data 605 HW 8

19.10.2020

Code Show All Code Hide All Code Data 605 HW8 Data 605 HW8 Exercise 7.11 Exercise 7.14 Exercise 1 (p. 320-321) 2020-10-18 library(knitr) library(rmdformats) ## Global options options(max.print="81") opts_chunk$set( cache=TRUE, prompt=FALSE, tidy=TRUE, comment=NA, ...

2788 sym R (288 sym/1 pcs)

Data 624 Homework 6

18.10.2020

Code Show All Code Hide All Code Data 624 HW6 Data 624 HW6 Exercise 8.11.1 Exercise 8.11.2 Exercise 8.11.3 Exercise 8.11.5 Exercise 8.11.6 Exercise 8.11.7 Dennis Pong 2020-10-18 library(knitr) library(rmdformats) ## Global options options(max.print="31") opts_chunk$set(cache=TRUE, prompt=FALSE, tidy=TRUE, ...

12127 sym R (14325 sym/127 pcs) 38 img