Publications by Shane Hylton

Fantasy Football Score Calculator

24.11.2021

Important Note These functions take a vector of values that represent the stats of an individual player and they return the player’s score for the game. The functions are designed to convert the data to a data frame, then perform the manipulation on the dataframe. They can accept data frames as inputs as well. The data frame provided must conta...

2506 sym R (8250 sym/24 pcs) 1 img

Tidyverse Extension

17.11.2021

Examples of tidyverse Tom Buonora and Shane Hylton – EXTEND 2021-11-16 library(tidyverse) # ggplot2, dplyr, tidyr, readr, tibble, sringr and more Tidyverse Vignette readr : read_csv() read_csv is part of readr whereas read.csv is base R. I’m not sure that read_csv is tidier than read.csv CURR_PATH<-str_trim(getwd()) # to do : use ...

2708 sym R (5478 sym/12 pcs) 3 img

Tidyverse Exploration

16.11.2021

TidyVerse CREATE Shane Hylton 11/15/2021 Overview Tidyverse is a versatile tool for data science and I will be using a fivethirtyeight dataset to dive into tidyverse. This comprehensive package offers a wide array of dataframe tools, as well as tools to manipulate other forms of data. In short, tidyverse is the master key for data manipulation. ...

2411 sym R (10073 sym/22 pcs) 1 img

DATA 606 HW 8

08.11.2021

Nutrition at Starbucks, Part I. (8.22, p. 326) The scatterplot below shows the relationship between the number of calories and amount of carbohydrates (in grams) Starbucks food menu items contain. Since Starbucks only lists the number of calories on the display items, we are interested in predicting the amount of carbs a menu item has based on i...

7955 sym R (1029 sym/20 pcs) 10 img

DATA 607 Homework Week 11--Recommender Systems

05.11.2021

Netflix Recommender System Shane Hylton 11/4/2021 Exploring Netflix’s Recommendation System Netflix offers recommendations on television shows and movies for their customers on a daily basis. They use a recommender system to accomplish these tasks. Scenario Design Analysis: Who are the target users? Netflix’s target users are movie and TV w...

5392 sym

DATA 606 HW 7

25.10.2021

Working backwards, Part II. (5.24, p. 203) A 90% confidence interval for a population mean is (65, 77). The population distribution is approximately normal and the population standard deviation is unknown. This confidence interval is based on a simple random sample of 25 observations. Calculate the sample mean, the margin of error, and the sampl...

6906 sym R (2020 sym/17 pcs) 4 img

606 Homework Chapter 5

11.10.2021

Question 1: Heights of adults. (7.7, p. 260) Researchers studying anthropometry collected body girth measurements and skeletal diameter measurements, as well as age, weight, height and gender, for 507 physically active individuals. The histogram below shows the sample distribution of heights in centimeters. (a) What is the point estimate for th...

11219 sym R (3858 sym/52 pcs) 9 img

Working with JSON in R

11.10.2021

The Files Reading from JSON library(tidyjson) ## ## Attaching package: 'tidyjson' ## The following object is masked from 'package:stats': ## ## filter link <- 'https://raw.githubusercontent.com/st3vejobs/Data-607-Working-with-JSON-in-R-/main/books.json' jsonbooks <- jsonlite::fromJSON(link) jsonbooks <- data.frame(jsonbooks) jsonbooks ## ...

345 sym R (2674 sym/16 pcs)

DATA 607 Homework 4

04.10.2021

Loading the Data – NYC Street Trees I will load the data and isolate the variables of interest. Due to the size of the file, I am unable to load the dataframe into github. treesraw <- read.csv( '/Users/shanehylton/Desktop/fulltrees.csv') trees <- treesraw[c(10,38,39)] Plotting a Map of the Data This suggestion recommended creating a plot of lo...

1583 sym R (4868 sym/6 pcs) 1 img

DATA 607 Homework 4

27.09.2021

Homework 4 link <- "https://raw.githubusercontent.com/st3vejobs/607hw4data/main/israeli_vaccination_data_analysis_start.csv" clean <- function(x){ as.numeric( gsub('[^a-zA-Z0-9.]', '', x)) } library(stringr) data <- readLines(link) ## Warning in readLines(link): incomplete final line found on ## 'https://raw.githubusercontent.com/st3vejobs/60...

1209 sym R (2450 sym/24 pcs)