Publications by Daniel Lee
Apply 6
Import Data # csv file jobs_gender <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-03-05/jobs_gender.csv") ## Rows: 2088 Columns: 12 ## ── Column specification ───────────────────────────────────────────�...
290 sym R (1818 sym/15 pcs) 10 img
Code Along 7
knitr::opts_chunk$set(echo = TRUE) # Load package] 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 ...
161 sym R (3460 sym/17 pcs)
Apply 6
# Load packages # Core library(tidyverse) library(tidyquant) Goal Visualize expected returns and risk to make it easier to compare the performance of multiple assets and portfolios. Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("AAPL", "BA", "DIS", "NKE") prices <- tq_get(x = symbols, get ...
1056 sym R (2042 sym/11 pcs)
CodeAlong6
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 ✔ tidyr 1.3.0 ## ...
1259 sym R (8858 sym/50 pcs) 4 img
Document
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 ✔ tidyr 1.3.0 ## ...
117 sym R (20371 sym/45 pcs) 7 img
CodeAlong6 CH4
# 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 # Choose stocks symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get...
379 sym R (4985 sym/27 pcs) 2 img
Apply Code 6
Get data survivalists <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2023/2023-01-24/survivalists.csv') ## Rows: 94 Columns: 16 ## ── Column specification ───────────────────────────────────────────────�...
302 sym R (2961 sym/24 pcs) 16 img
Week 7: Code Along 6 - Jason Zink
Introduction Questions Variation Visualizing distributions diamonds %>% ggplot(aes(x = cut)) + geom_bar(mapping = aes(x = cut)) diamonds %>% ggplot(mapping = aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds %>% filter(carat < 3) %>% ggplot(aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds %>% ...
284 sym R (1831 sym/19 pcs) 15 img
Week 7: Code Along 6 - Jason Zink
Introduction Questions Variation Visualizing distributions diamonds %>% ggplot(aes(x = cut)) + geom_bar(mapping = aes(x = cut)) diamonds %>% ggplot(mapping = aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds %>% filter(carat < 3) %>% ggplot(aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds %>% ...
284 sym R (1831 sym/19 pcs) 15 img
Week 7: Code Along 6 - Jason Zink
Introduction Questions Variation Visualizing distributions diamonds %>% ggplot(aes(x = cut)) + geom_bar(mapping = aes(x = cut)) diamonds %>% ggplot(mapping = aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds %>% filter(carat < 3) %>% ggplot(aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds %>% ...
284 sym R (1831 sym/19 pcs) 15 img