Publications by David Nilsson

Code Along 5 Ch 5

22.02.2024

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 ...

545 sym Python (20144 sym/51 pcs) 1 img

Code Along 5 Ch 4

22.02.2024

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 (231 sym/9 pcs)

Apply 4

15.02.2024

Import data State one question What have been the most likely outcome a home win, a draw, or an away win? Plot data Interpret Since the start of the World Cup there has been more wins for the “Home” team than the “Away” team. The least occurring outcome has been a draw between two teams....

305 sym 1 img

Apply 3

15.02.2024

Import data # excel file data <- read_excel("data/myData.xlsx") data ## # A tibble: 900 × 15 ## year country city stage home_team away_team home_score away_score outcome ## <dbl> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <chr> ## 1 1930 Uruguay Montev… Grou… France Mexico 4 1 H ...

34 sym 1 img

Code Along 4

15.02.2024

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...

1384 sym R (1943 sym/14 pcs) 9 img

Test Publishing

12.02.2024

Do your work here 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.4.4 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 �...

25 sym R (1648 sym/4 pcs)

Homework Week 1

07.09.2022

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 one to understand the causes real life events c...

1554 sym

Real world applications 1

08.09.2022

Company State the name of your company. Characteristics of the company Describe the company in at least 50 words. Find the company information from the Nexis Uni database. Include characteristics such as the number of employees, sales revenues, product lines, and the industry. Bank of New Hampshire was founded in 1831 and headquartered in La...

726 sym

Best practice 2

14.09.2022

## # A tibble: 1,096 × 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 1...

4807 sym 1 tbl

Real World Applications 2

16.09.2022

## # A tibble: 384 × 5 ## # Groups: symbol [2] ## 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 194...

446 sym