Publications by Alec McCabe

Data 624 - homework 5

05.03.2023

Data 624 Assignment 5 Alec McCabe Import Libraries library(fpp3) ## Warning: package 'fpp3' was built under R version 4.1.2 ## ── Attaching packages ────────────────────────────────────────────── fpp3 0.5 ── ## ✓ tibble 3.1.6 ✓ tsibble ...

4794 sym 12 img

Data 624 Homework 4

26.02.2023

Data 624 Homework 4 Alec McCabe Libraries library(mlbench) library(corrplot) ## corrplot 0.92 loaded library(e1071) ## Warning: package 'e1071' was built under R version 4.1.2 library(visdat) library(naniar) ## Warning: package 'naniar' was built under R version 4.1.2 library(dplyr) ## Warning: package 'dplyr' was built under R version 4.1.2 ## #...

3543 sym Python (3164 sym/65 pcs) 42 img

Data 624 Homework 3

18.02.2023

R Markdown library(fpp3) ## Warning: package 'fpp3' was built under R version 4.1.2 ## ── Attaching packages ────────────────────────────────────────────── fpp3 0.5 ── ## ✓ tibble 3.1.6 ✓ tsibble 1.1.3 ## ✓ dplyr 1.0.8 �...

27 sym R (1170 sym/11 pcs)

Data 624 Homework 2

12.02.2023

Data 624 Homework 2 Alec McCabe Libraries library(fpp3) library(tsibble) Assignment Instructions Do exercises 3.1, 3.2, 3.3, 3.4, 3.5, 3.7, 3.8 and 3.9 from the online Hyndman book. Please include your Rpubs link along with your .rmd file. Exercises 3.1 Consider the GDP information in global_economy. Plot the GDP per capita for each country ove...

3896 sym 21 img

Data 622 - Homework 1

05.02.2023

Data 622 Homework 1 Alec McCabe library(fpp2) Question 1 - Examine Datasets Use the help function to explore what the series gold, woolyrnq and gas represent. Use autoplot() to plot each of these in separate plots. What is the frequency of each series? Hint: apply the frequency() function. Use which.max() to spot the outlier in the gold series. ...

4797 sym 28 img

Data 624 Homework 1

05.02.2023

Data 624 Homework 1 Alec McCabe library(fpp2) Question 1 - Examine Datasets Use the help function to explore what the series gold, woolyrnq and gas represent. Use autoplot() to plot each of these in separate plots. What is the frequency of each series? Hint: apply the frequency() function. Use which.max() to spot the outlier in the gold series. ...

4797 sym 28 img

Data 608 - Homework 1

11.09.2022

library(tidyverse) ## Warning: package 'tidyr' was built under R version 4.1.2 ## Warning: package 'readr' was built under R version 4.1.2 ## Warning: package 'dplyr' was built under R version 4.1.2 library(ggplot2) library(psych) Principles of Data Visualization and Introduction to ggplot2 I have provided you with data about the 5,000 fastest gr...

1891 sym R (12315 sym/29 pcs) 5 img

Week 1 Homework - Alec McCabe

21.07.2021

Write a loop that calculates 12! calculate_factorial <- function(value){ ret = 1 if (value == 1){ return(ret) } for (x in 2:value) { ret = ret*x } return(ret) } calculate_factorial(12) ## [1] 479001600 Do it again for fun calc_fac <- function(value){ ret = 1 for (x in 1:value) { ret = value*ret value = value - 1 ...

162 sym R (656 sym/8 pcs)

Image Manipulation

31.01.2022

605 Homework 1 Alec 1/31/2022 One of the most useful applications for linear algebra in data science is image manipulation. We often need to compress, expand, warp, skew, etc. images. To do so, we left multiply a transformation matrix by each of the point vectors. For this assignment, build the first letters for both your first and last name usi...

1814 sym R (7367 sym/27 pcs) 6 img

606 Final Project

07.12.2021

606 Final Project Alec 12/2/2021 Load Packages library(tidyverse) library(psych) library(stringr) library(ggmap) library(readr) Load and Process Data Original Post Office Data Original dataset, post first-round geocoding, contains all 249 post offices in NYC (5 Boroughs). location_data <- read_csv("data/post_office_coords.csv", show_col_types ...

3626 sym R (13765 sym/65 pcs) 17 img