-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
87 lines (60 loc) · 1.52 KB
/
README.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
title: "Guidelines"
author: "KMicha71"
date: "2 8 2019"
output:
html_document:
keep_md: true
pdf_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Guidelines
### General
* RStudio with R markdown is needed for execution
* language is english
* use utf-8 encoding
* number format is english (1.000) - use point, no comma!
### License
* Prefered license is Apache 2.0
### Geographic Foci
* Germany
* box: 5,45 / 15,55
* Europe
* ...
### Time Resolution
* yearly
* monthly
* ...
### Generated geoJSON files
* https://geojson.org/
### Generated CSV files
* use descriptive, quoted header line
* use really comma as seperator
* quote strings, escape quote signes inside of them
* Reserved columns
* year: integer
* month: integer 1..12
* time: float: year with fractions (i.e. year + (month-1)/12)
### Used R-libraries
* ggplot2 (Plotting)
* SCI (SPI generation)
### Python code
* smaller chunks can be added directly
* larger should be called via shell
* version is 3.x
* i.e. https://www.spyder-ide.org/
```{python python-direct, python.reticulate = FALSE}
print("Hello from chunk directly")
```
```{sh python-file}
python ./source/hello.py
```
See also https://rstudio.github.io/reticulate/articles/r_markdown.html
### Shell-scripting
* unix/linux based
* install/use cygwin on Windows: https://www.cygwin.com/
* use wget -q -P download <url> to download files in subdirectory if not direct target
### Visualisation
* Add R code to visualize some of the data