Skip to content

Commit

Permalink
first slides upload
Browse files Browse the repository at this point in the history
  • Loading branch information
noatamir committed Jun 21, 2019
1 parent bb53a1f commit 54587c4
Show file tree
Hide file tree
Showing 1,055 changed files with 68,415 additions and 0 deletions.
Binary file added 10_Tim_Radtke.pdf
Binary file not shown.
Binary file added 11_Schoeley.pdf
Binary file not shown.
Binary file added 12_Rafael_Camargo.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/console06/INDEX001
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/pcs/files-pane.pper
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"path" : "C:/Users/tillmanns/Desktop/SatRDay",
"sortOrder" : [
{
"ascending" : true,
"columnIndex" : 2
}
]
}
3 changes: 3 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/pcs/source-pane.pper
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"activeTab" : 0
}
14 changes: 14 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/pcs/windowlayoutstate.pper
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"left" : {
"panelheight" : 867,
"splitterpos" : 363,
"topwindowstate" : "NORMAL",
"windowheight" : 906
},
"right" : {
"panelheight" : 867,
"splitterpos" : 550,
"topwindowstate" : "NORMAL",
"windowheight" : 906
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"TabSet1" : 0,
"TabSet2" : 2,
"TabZoom" : {
}
}
9 changes: 9 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/rmd-outputs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
G:/TIL/SatRDay/SatRDay_Example_automatedReports.pdf
G:/TIL/SatRDay/SatRDay_Example.pdf
C:/Users/tillmanns/Desktop/SatRDay/SatRDay_Example.pdf
C:/Users/tillmanns/Desktop/SatRDay/SatRDay_Example.pdf





Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"active_set":"","sets":[]}
20 changes: 20 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/per/t/D02AC1E2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"collab_server" : "",
"contents" : "",
"created" : 1560500639182.000,
"dirty" : false,
"encoding" : "UTF-8",
"folds" : "",
"hash" : "1750734645",
"id" : "D02AC1E2",
"lastKnownWriteTime" : 1560429945,
"last_content_update" : 1560429945,
"path" : "G:/TIL/SatRDay/SatRDay_Example_automatedReports.Rmd",
"project_path" : "SatRDay_Example_automatedReports.Rmd",
"properties" : {
},
"relative_order" : 1,
"source_on_save" : false,
"source_window" : "",
"type" : "r_markdown"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
---
author: "Hanna Tillmanns (WIdO)"
date: '`r paste("Stand: ",format(Sys.Date(), "%d.%m.%Y"),sep="")`'
header-includes:
- \renewcommand{\contentsname}{} #Changing title of content, here none

output:
pdf_document:
keep_tex: true
toc: true
toc_depth: 2
number_sections: true
subparagraph: true
fontsize: 12pt
tables: true
params:
col: "E"

title: \vspace{3in}`r paste0("Report about ",params$col,"-colored Diamonds")`
---

#Defining parameters "outside" the script

To be able to render the scripts with different parameters and not having to start it by hand, I use the "params"-value of the YAML.


The scripts are then startet with rmarkdown::render.


#Define all the general things and import the data

First things first. At the beginning I load all libraries, define the general parameters and import all of the data. In my case importing the data takes some time, therefore it is nice not having to repeat this for every single child-script, especially those that run several times.


```{r setup, include=TRUE, echo=TRUE, message=FALSE, warning=FALSE, tidy=TRUE, results="hide"}

# define parames
col<- params$col


#load librarys

library(openxlsx)
#library(reshape2)
#library (RODBC)
#library(lmtest)
#library(ggplot2)
library(foreach)
library(tidyverse)
#library(treemap)
#library(gridExtra)
#library(grid)
library(knitr)
#library(pander)
#library(kableExtra)
#library(captioner)
#library(here)
#library(RGraphics)
#library(treemapify)


#Creating the Data for the Report

data <- diamonds %>%
filter(color==col)

```

#Creating the Report

The report can be divided into different types of sections:

* all those sections that are within the parent script
* sections that are in child-scripts
+ without a loop and without a condition
+ with a condition that has to be true to render the file
+ within a loop, which creates a section for every defined specificaton.



#Single child-script

```{r}

# calling a single child with

#```{r single_child,child = 'Single_Child.rmd'}
#```

```



```{r single_child,child = 'Single_Child.rmd'}
```


#Conditional child-script

The script will only be evaluated if the condition is true. This is a nice way to cope for example with missing data.



```{r conditional_print_test, include=TRUE, echo=TRUE, message=FALSE, warning=FALSE, tidy=TRUE}

#creating the test

test <- ifelse(data %>%
filter(clarity=="SI2") %>% nrow()>0,TRUE,FALSE)


```


```{r}

#calling the conditional child-script with:

#```{r conditional_print_script, child='cond_child.Rmd', eval = test}
#```

```


```{r conditional_print_script, child='cond_child.Rmd', eval = test}
```

#Looping over child-scripts

As the names of chunks may not be repeated, the chunks should be nameless.

```{r LOOP_CHILD, include=TRUE, echo=TRUE, message=FALSE, warning=FALSE, tidy=TRUE, results="hide"}


out.loop<-NULL #creating the output

#Creating a chapter for every cut

foreach(y= c("Premium","Fair")) %do% {

#Parameters used within the loop can be created

cut.short <- case_when(y=="Ideal"~"I",
y=="Premium"~"P",
y=="Good"~"G",
y=="Very Good"~"V",
y=="Fair"~"F"
)
headline<- paste0("# Section about the cut ", y)

#Creating the chapter for every cut

res.loop<-c(headline
, knit_child('loop_child_1.Rmd' , envir=knit_global())
, knit_child('loop_child_2.RMD' , envir=knit_global())
)

#Puting the chapters together

out.loop <- c(out.loop,res.loop)

}

```

\newpage


```{r paste_Loop}

#Pasting the chapters into the text with the following inline code

# `r paste(out.loop, collapse='\n')`

```

`r paste(out.loop, collapse='\n')`




5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/1071EA8D
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "50,0",
"scrollLine" : "35",
"tempName" : "Untitled2"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/124DDC7C
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "3,87",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
4 changes: 4 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/235B9755
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cursorPosition" : "11,80",
"scrollLine" : "0"
}
4 changes: 4 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/25BE54B
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cursorPosition" : "0,0",
"scrollLine" : "0"
}
4 changes: 4 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/2B54D14E
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cursorPosition" : "252,37",
"scrollLine" : "0"
}
2 changes: 2 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/44F86E6B
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
4 changes: 4 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/5E878D08
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cursorPosition" : "35,0",
"scrollLine" : "0"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/7399B13A
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "3,0",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
4 changes: 4 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/80F77BD5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cursorPosition" : "9,2",
"scrollLine" : "0"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/84114051
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "12,29",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/8CC81324
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "3,0",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/967F276C
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "1,0",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/A849FA56
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "77,2",
"scrollLine" : "69",
"tempName" : "Untitled2"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/AB749A88
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "12,29",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/AE465C01
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "10,0",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
4 changes: 4 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/B7B96F8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cursorPosition" : "619,6",
"scrollLine" : "0"
}
2 changes: 2 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/C56FB822
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
4 changes: 4 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/CD29E08F
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cursorPosition" : "0,0",
"scrollLine" : "0"
}
5 changes: 5 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/F5054BF4
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cursorPosition" : "1,0",
"scrollLine" : "0",
"tempName" : "Untitled2"
}
19 changes: 19 additions & 0 deletions 13_Hanna_Tillmanns/.Rproj.user/998809F7/sources/prop/INDEX
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2FR-Skripte%2FPIA_BETRIEB_ICDKAP.Rmd="5E878D08"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2FR-Skripte%2FPIA_BETRIEB_WOHNORT.Rmd="235B9755"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2FR-Skripte%2FPIA_KV_ENTWICKLUNG.Rmd="2B54D14E"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2FR-Skripte%2FPIA_PARENT.rmd="B7B96F8"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2FR-Skripte%2FPIA_output_erstellen.R="C56FB822"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2FSatRDay_Example.Rmd="1071EA8D"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2FSingle_Child.Rmd="8CC81324"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2Fcond_child.Rmd="25BE54B"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2Fcond_print.Rmd="124DDC7C"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2Fformate.sty="80F77BD5"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2Floop_child_1.Rmd="F5054BF4"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2Floop_child_2.Rmd="84114051"
C%3A%2FUsers%2Ftillmanns%2FDesktop%2FSatRDay%2Floop_child_2a.Rmd="AE465C01"
G%3A%2FTIL%2FSatRDay%2FSatRDay_Example.Rmd="A849FA56"
G%3A%2FTIL%2FSatRDay%2FSatRDay_Example_automatedReports.Rmd="44F86E6B"
G%3A%2FTIL%2FSatRDay%2FSingle_Child.Rmd="7399B13A"
G%3A%2FTIL%2FSatRDay%2Fcond_child.Rmd="CD29E08F"
G%3A%2FTIL%2FSatRDay%2Floop_child_1.Rmd="967F276C"
G%3A%2FTIL%2FSatRDay%2Floop_child_2.Rmd="AB749A88"
Empty file.
Loading

0 comments on commit 54587c4

Please sign in to comment.