Publications by Tindra Bergstrand

Apply7_tets

06.03.2024

Import your data # excel filer games <- read_excel("../00_data/MyData_charts.xlsx") games ## # A tibble: 988 × 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 ...

166 sym Python (5859 sym/11 pcs)

CodeAlong7

06.03.2024

Tidy Data Pivoting Long to Wide form table4a_long <- table4a %>% pivot_longer(cols = c(`1999`, `2000`), names_to = "year", values_to = "cases") Wide to Long form table4a_long %>% pivot_wider(names_from = year, values_from = cases) ## # A tibble: 3 × 3 ## country `1999` `2000` ## <chr> <d...

175 sym R (2737 sym/18 pcs)

Apply 6

04.03.2024

Import Data # excel filer games <- read_excel("../00_data/MyData_charts.xlsx") games ## # A tibble: 988 × 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 ...

306 sym 13 img

Apply-5

03.03.2024

Import data # excel filer games <- read_excel("../00_data/MyData_charts.xlsx") games ## # A tibble: 988 × 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 ...

101 sym Python (5253 sym/13 pcs) 1 img

Apply_5

29.02.2024

Import data # excel filer games <- read_excel("../00_data/MyData_charts.xlsx") games ## # A tibble: 988 × 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 ...

76 sym Python (4213 sym/9 pcs) 1 img

Code Along 6

28.02.2024

Introduction Question Variation Visualizing distrubution diamonds %>% ggplot(aes(x = cut)) + geom_bar() diamonds %>% ggplot(mapping = aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds %>% filter(carat < 3) %>% ggplot(aes(x = carat)) + geom_histogram(binwidth = 0.5) diamonds%>% ggplot(aes(x = carat, col...

283 sym R (1914 sym/20 pcs) 16 img

Apply 5

23.02.2024

Import data # excel filer games <- read_excel("../00_data/MyData_charts.xlsx") data ## function (..., list = character(), package = NULL, lib.loc = NULL, ## verbose = getOption("verbose"), envir = .GlobalEnv, overwrite = TRUE) ## { ## fileExt <- function(x) { ## db <- grepl("\\.[^.]+\\.(gz|bz2|xz)$", x) ## ans <- sub(".*\\...

51 sym R (9555 sym/5 pcs) 1 img

CodeAlong5_chapter5

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

152 sym Python (19009 sym/51 pcs) 1 img

CodeAlong5_firstpart

22.02.2024

Coding basics R as a calculator 500 / 10 ## [1] 50 x <- 500 / 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 (226 sym/9 pcs)

Apply 3new

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