Publications by jr1400
Code Along 3 Performance Analysis
# Load Packages library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ tid...
142 sym R (5205 sym/12 pcs)
Apply 3
# Load Packages library(tidyverse) library(tidyquant) 1 Get stock prices and convert to returns Ra <- c("TSLA", "DKNG", "SMCI") %>% tq_get(get = "stock.prices", from = "2022-01-01") %>% group_by(symbol) %>% tq_transmute(select = adjusted, mutate_fun = periodReturn, period = "month...
203 sym R (3102 sym/11 pcs)
Apply 2
Import stock prices stocks <- tq_get(c("JNJ", "MSFT", "BAC"), get = "stock.prices", from = "2016-01-01", to = "2018-01-01") stocks ## # A tibble: 1,509 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 JNJ ...
195 sym Python (4917 sym/13 pcs) 1 img
Code Along 2 Ch5
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 ...
311 sym Python (19845 sym/51 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...
1377 sym R (1734 sym/12 pcs) 7 img
Apply to your data 1
Import stock prices stocks <- tq_get(c("JNJ", "MSFT", "BAC"), get = "stock.prices", from = "2016-01-01", to = "2018-01-01") stocks ## # A tibble: 1,509 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 JNJ ...
50 sym Python (1089 sym/3 pcs) 1 img
Code Along 2 Ch4
Coding basics R as a calculator 1000 / 10 ## [1] 100 x <- 1000 / 10 # x assignment symbol What’s in a name? Calling functions Use of TAB seq(from = 1, to = 10, by = 1) ## [1] 1 2 3 4 5 6 7 8 9 10 continuation character, + seq(from = 1, to = 10) ## [1] 1 2 3 4 5 6 7 8 9 10 Printing to screen y <- seq(from = 1, to = 10) y...
171 sym Python (229 sym/9 pcs)