This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The notes made on the questions that you posed during day 3 on the content from day 2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hier findet sich das Skript zur Entwicklung der beiden Beispielabbildung, die wir im Kurs am 15. Juli 2024 entwickelt haben, sowie den weiteren Visualisiserungsnotizen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hier sind alle Notizen und Aufgabenlösungen zu Tag 2 (8. Juli 2024). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hier sind alle Notizen und Aufgabenlösungen zu Tag 1 (1. Juli 2024). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tibble) | |
library(ggplot2) | |
library(moderndive) | |
# 1. Implement linear regression----------------- | |
# Make a shortcut to the data: | |
beer_data <- as_tibble(DataScienceExercises::beer) | |
head(beer_data) | |
# Conduct the linear regression: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code used during the lecture on sampling. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solutions for the exercises in the session on data preparation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(DataScienceExercises) | |
library(ggplot2) | |
library(scales) | |
# Bubble plot------ | |
gdp_data <- DataScienceExercises::gdplifexp2007 | |
# In the following, lines with changes are marked with '# <---' | |
# 1st step: empty list | |
gdp_plot <- ggplot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A step-by-step solution for the first function task of the "Basics" tutorial | |
# Goal: define a function that computes the sample variance of a vector | |
# Note: there are many strategies to develop functions; here we start by first | |
# writing the code that solves our problem for one particular case outside the | |
# function, and then generalize this code in a function. | |
# First step: think about the starting point for your function. In our case: | |
# we start with a vector containing some numbers, because this is from what |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remotes::install_github("graebnerc/DataScienceExercises") | |
library(DataScienceExercises) | |
library(tibble) | |
# # Exercise 1: Basic object types I--------- | |
# | |
# 1. Create a vector containing the numbers `2`, `5`, `2.4` and `11`. | |
# | |
# 2. Replace the second element with `5.9`. | |
# |
NewerOlder