Publications by Kenton Quaglieri
Chocolate
Explore Data library(tidyverse) ## Warning: package 'ggplot2' was built under R version 4.3.3 ## Warning: package 'forcats' was built under R version 4.3.3 ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## �...
108 sym R (9420 sym/52 pcs) 4 img
CodeAlong5
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get(x = symb...
352 sym R (2688 sym/14 pcs) 3 img
APPLY3
Goal: To figure out how to deliver more high-capacity transit projects for a fraction of the cost in countries like the United States. click here for the data. Import Data transit_cost <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-01-05/transit_cost.csv') ## Rows: 544 Columns: 20 ## ─...
398 sym R (23769 sym/29 pcs) 2 img 3 tbl
Apply4
# Load packages library(tidyverse) library(tidyquant) 1 Import stock prices of your choice symbols <- c("NOC", "WMT","UPS","UNH", "SPY") prices <- tq_get(x = symbols, get = "stock.prices", from = "2012-01-01", to = "2017-01-01") 2 Convert prices to returns by quarterly asset_returns_tbl...
471 sym R (1497 sym/5 pcs) 1 img
Code along 3 3100
Goal: to predict the rental prices in the SF Rental Market click here for the data. Import Data rent <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2022/2022-07-05/rent.csv') ## Rows: 200796 Columns: 17 ## ── Column specification ────────────────────────�...
322 sym R (23651 sym/29 pcs) 5 img 3 tbl
Code along 4
# Load packages # Core library(tidyverse) ## Warning: package 'ggplot2' was built under R version 4.3.3 ## Warning: package 'forcats' was built under R version 4.3.3 ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr ...
219 sym R (4110 sym/10 pcs) 1 img
Apply 2
Goal: To figure out how to deliver more high-capacity transit projects for a fraction of the cost in countries like the United States. click here for the data. Import Data transit_cost <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-01-05/transit_cost.csv') ## Rows: 544 Columns: 20 ## ─...
431 sym R (20168 sym/23 pcs) 1 img 3 tbl
Apply2fixed
Goal: To figure out how to deliver more high-capacity transit projects for a fraction of the cost in countries like the United States. click here for the data. Import Data transit_cost <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-01-05/transit_cost.csv') ## Rows: 544 Columns: 20 ## ─...
428 sym R (18707 sym/20 pcs) 1 img 3 tbl
Apply3
# Load Packages library(tidyverse) ## Warning: package 'ggplot2' was built under R version 4.3.3 ## Warning: package 'forcats' was built under R version 4.3.3 library(tidyquant) 1 Get stock prices and convert to returns Ra <- c("NOC", "WMT", "UPS", "UNH") %>% tq_get(get = "stock.prices", from = "2022-01-01") %>% group_by(sy...
346 sym R (3372 sym/14 pcs)
Codealong2
Goal: to predict the rental prices in the SF Rental Market click here for the data. Import Data rent <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2022/2022-07-05/rent.csv') ## Rows: 200796 Columns: 17 ## ── Column specification ────────────────────────�...
317 sym R (33919 sym/25 pcs) 4 img 3 tbl