Publications by Daniel Lee
DAT3100: Apply 1 - Horror Movie
Horror Movies: Build a regression model to predict the average movie rating (vote_average). Use the horror_movies dataset. Import Data horror_movies <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2022/2022-11-01/horror_movies.csv') ## Rows: 32540 Columns: 20 ## ── Column specification ───...
1129 sym R (19245 sym/33 pcs) 5 img 5 tbl
Apply to Data 3
# Load packages library(tidyverse) library(tidyquant) 1 Get stock prices and convert to returns Ra <- c("AAPL", "GOOG", "NFLX") %>% tq_get(get = "stock.prices", from = "2022-01-01") %>% group_by(symbol) %>% tq_transmute(select = adjusted, mutate_fun = periodReturn, period ...
204 sym R (3567 sym/11 pcs)
Apply Data 2
Import stock prices stocks <- tq_get(c("AAPL", "GOOG"), get = "stock.prices", from = "2016-01-01") stocks ## # A tibble: 3,878 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 AAPL 2016-01-04 25.7 26.3 25.5 26.3 27...
387 sym Python (8840 sym/34 pcs) 2 img
Apply_Data- 2
Import stock prices stocks <- tq_get(c("AAPL", "GOOG"), get = "stock.prices", from = "2016-01-01") stocks ## # A tibble: 3,878 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 AAPL 2016-01-04 25.7 26.3 25.5 26.3 27...
387 sym Python (8840 sym/34 pcs) 2 img
Jason Zink - Mod 4: Code Along 3
1 Footnotes This is some text with a Footnote1. This is a second Footnote2. 1.1 What can RMarkdown be used for? HTML Reports & PDF Reports HTML Slide Decks & PowerPoint Interactive Dashboards Books with bookdown Websites with blogdown 1.2 Key Resources RMarkdown Website with Gallery Key Reference: RMarkdown - The Definitive Guide PDF Printing S...
1384 sym Python (441 sym/6 pcs) 3 img 1 tbl
Financial analytics cdoe along 1
Welcome Ch1 Introduction The data science project workflow Prerequisites R RStudio r packages Install the tidyverse package Running R code 1+2 ## [1] 3 Getting help Google Stackoverflow Ch2 Introduction to Data Exploration Ch3 Data Visualization Set up library(tidyverse) data mpg ## # A tibble: 234 × 11 ## manufacturer model di...
1375 sym R (1624 sym/11 pcs) 6 img
Test Publishing
Do your work here. library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ...
26 sym R (1648 sym/4 pcs)
CodeAlong3
Do your work here. library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ...
26 sym R (1648 sym/4 pcs)
Code Along 3
Do your work here. library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ...
26 sym R (1648 sym/4 pcs)