Publications by Sondre Asheim
Apply2
Import stock prices stocks <- tq_get(c("AAPL", "ROKU", "CL=F"), get = "stock.prices", from = "2019-01-01", to = "2020-01-01") stocks ## # A tibble: 756 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #...
201 sym Python (5328 sym/15 pcs) 1 img
CodeAlong2CH4
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)...
171 sym Python (232 sym/9 pcs)
CodeAlong2CH5
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 ...
521 sym Python (20248 sym/52 pcs) 1 img
Apply1
Import stock prices stocks <- tq_get(c("ROKU", "AAPL", "CL=F"), get = "stock.prices", from = "2019-01-01", to = "2020-01-01") stocks ## # A tibble: 756 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## ...
50 sym Python (1107 sym/3 pcs) 1 img
CodeAlong1
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...
1381 sym R (1880 sym/13 pcs) 7 img
CodeAlong2forCH4
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)...
171 sym Python (232 sym/9 pcs)
Publish Document
Chapter 1 It’s Not Just about Forecasting The following are the key points in the chapter. Elaborate on each point in at least 30 words. Understanding economics can help you to diagnose the causes of increases or decreases in sales volumes and costs. Yes, understanding economic trends allows us to understand the causes real life events co...
1558 sym
Real world applications 1
Company Bank of New Hampshire Characteristics of the company Bank of New Hampshire has a total of 286 employees, who are spread out in numerous different locations in New Hampshire. Bank of New Hampshire was founded in 1831 and they are headquartered in Laconia. They provide deposit services, lending, and wealth management products to families a...
674 sym
Best Practice 2
## # A tibble: 1,096 x 5 ## # Groups: symbol [8] ## symbol date price change text ## <chr> <date> <dbl> <dbl> <glue> ## 1 GDPC1 1947-01-01 2034. NA 1947.1, ## Growth: NA ## 2 GDPC1 1947-04-01 2029. -0.00267 1947.2, ## Growth: -0.3% ## 3 GDPC1 1947-07-01 2025. -0.00207 ...
8067 sym 1 tbl
applications2
## # A tibble: 768 x 5 ## # Groups: symbol [4] ## symbol date price change text ## <chr> <date> <dbl> <dbl> <glue> ## 1 GDPC1 1947-01-01 2034. NA 1947.1, ## Growth: NA ## 2 GDPC1 1947-04-01 2029. -0.00267 1947.2, ## Growth: -0.3% ## 3 GDPC1 1947-07-01 2025. -0.00207 19...
679 sym