Publications by Daniel Lee
Apply it to your data 1
Import stock prices stocks <- tq_get(c("NDA-FI.HE", "JPM", "DNB.OL", "MS"), get = "stock.prices", from = "2016-01-01") stocks ## # A tibble: 8,725 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 NDA-FI.HE 2016-01-04 1...
50 sym Python (1091 sym/3 pcs) 1 img
Apply it 1
Import stock prices stocks <- tq_get(c("COIN", "CMG", "U", "RIOT"), get = "stock.prices", from = "2016-01-01") stocks ## # A tibble: 6,146 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 COIN 2021-04-14 381 430...
50 sym Python (1078 sym/3 pcs) 1 img
Document
Import stock prices stocks <- tq_get(c("PYPL", "GM", "ABNB", "AXP", "NVDA", "GOOGL"), get = "stock.prices", from = "2009-01-01") stocks ## # A tibble: 18,536 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 PYPL 2...
50 sym Python (1113 sym/3 pcs) 1 img
Apply it to your data 1
Import stock prices stocks <- tq_get(c("JNJ", "KSS", "TDS"), get = "stock.prices", from = "2017-01-01", to = "2019-01-01") stocks ## # A tibble: 1,506 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 JNJ ...
50 sym Python (1076 sym/3 pcs) 1 img
Document
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 d...
1379 sym R (1649 sym/12 pcs) 6 img
Code 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 d...
1352 sym R (2449 sym/18 pcs) 13 img
Apply it to your Data 1
Import stock prices stocks <- tq_get(c("SPOT", "ISRG", "KHC", "FIS", "GOOG"), get = "stock.prices", from = "2020-01-01",) stocks ## # A tibble: 5,870 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 SPOT 2020-01-02 ...
50 sym Python (1077 sym/3 pcs) 1 img
Code 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...
1383 sym R (2046 sym/15 pcs) 10 img
week 2 Code 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 d...
1380 sym R (1750 sym/12 pcs) 7 img
Document
# Load packages # Core library(tidyverse) library(tidyquant) # time series library(timetk) Goal Simulate future portfolio returns five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” market: “SPY” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get(x = symbol...
476 sym R (8988 sym/36 pcs) 2 img