-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.Rmd
50 lines (40 loc) · 1.69 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
title: "ml4ec - Machine Learning for Eddy Covariance data"
author: "Benjamin Stocker"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
description: "This is a tutorial for a workshop (1 day), introducing machine learning using R."
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
warning = FALSE,
message = FALSE,
fig.align = "center",
fig.width = 7.25,
fig.height = 6
)
system("mkdir data")
```
# Set up
## Apps
For this workshop, you need [R](https://www.r-project.org/) and [RStudio](https://www.rstudio.com/products/rstudio/download/). Follow the links for downloading and installing these apps.
## Libraries
Install missing packages for this tutorial.
```{r}
list_pkgs <- c("caret", "recipes", "rsample", "tidyverse", "conflicted", "modelr", "forcats", "yardstick", "visdat", "skimr", "ranger", "knitr", "patchwork", "hexbin")
new_pkgs <- list_pkgs[!(list_pkgs %in% installed.packages()[, "Package"])]
if (length(new_pkgs) > 0) install.packages(new_pkgs)
```
This book was compiled with the *bookdown* library and source files (RMarkdown), available on [Github](https://github.com/stineb/ml4ec_workshop). Navigate there also for working on the exercises (Chapter \@ref(exercises)) and using the solutions (Chapter \@ref(solutions)).
This book is published under a GNU-GPL v3 license. Please cite this as:
Benjamin Stocker. (2021). ml4ec_workshop: v1: Initial version (v1.0). Zenodo. https://doi.org/10.5281/zenodo.5521563
```{r include=FALSE}
# automatically create a bib database for R packages
knitr::write_bib(c(
.packages(), 'bookdown', 'knitr', 'rmarkdown'
), 'packages.bib')
```