Publications by Daniel Lee
Apply 5 DA
Import data # excel file data <- read_excel("../00_data/Salaries.xlsx") data ## # A tibble: 397 × 6 ## rank discipline yrs.since.phd yrs.service sex salary ## <chr> <chr> <dbl> <dbl> <chr> <dbl> ## 1 Prof B 19 18 Male 139750 ## 2 Prof B 20 ...
203 sym Python (7068 sym/20 pcs)
Codealong6
# 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...
402 sym R (4242 sym/21 pcs) 2 img
Code Along 5 FA
# 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 = symbols, ...
351 sym R (2591 sym/14 pcs) 3 img
Apply 5 FA
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("NKE", "NFLX", "AAPL") prices <- tq_get(x = symbols, from = "2012-12-31", to ...
1469 sym R (2264 sym/12 pcs) 1 img
Real Ch 5 Code Along 5 DA
Import data flights ## # A tibble: 336,776 × 19 ## year month day dep_time sched_dep_time dep_delay arr_time sched_arr_time ## <int> <int> <int> <int> <int> <dbl> <int> <int> ## 1 2013 1 1 517 515 2 830 819 ## 2 2013 1 1 533 529 ...
531 sym Python (19848 sym/51 pcs) 1 img
Apply 5
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("JPM", "MS", "DNB.OL", "NDA-FI.HE") prices <- tq_get(x = symbols, get = "stock.prices", ...
1437 sym R (2727 sym/14 pcs) 2 img
Apply 5
Import data Apply the following dplyr verbs to your data Filter rows Arrange rows Select columns Add columns Summarize by groups...
153 sym
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= symbo...
292 sym R (2101 sym/13 pcs) 1 img
Applyit5
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("EPD", "LMT", "PLAY", "KDP") prices <- tq_get(x = symbols, get = "stock.prices", ...
513 sym R (2624 sym/13 pcs) 2 img
Apply it to your data 5
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbol <- c("AMZN", "BIG", "TSLA", "WM", "PLUG") prices <- tq_get(x = symbol, get = "stock.prices", ...
415 sym R (1205 sym/10 pcs) 1 img