diff --git a/journal-de-bord/tutorial.Rmd b/journal-de-bord/tutorial.Rmd new file mode 100644 index 0000000000000000000000000000000000000000..25cd4518ac8cbd49817cc6d274d3e66f3744931e --- /dev/null +++ b/journal-de-bord/tutorial.Rmd @@ -0,0 +1,59 @@ +--- +title: "Mon premier document" +author: "Arnaud Legrand" +date: "10 octobre 2017" +output: word_document +--- + +## R Markdown + +This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see . + +When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: + +```{r cars} +summary(cars) +``` + +## Including Plots + +You can also embed plots, for example: + +```{r pressure, echo=FALSE} +plot(pressure) +``` + +Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. + +## Ma propre section + +```{r} +x=1 +x +``` + +```{r} +x = x + 10 +x +``` +```{r} +hist(rnorm(1000)) +``` + +```{r} +hist(rnorm(100,mean = 2, sd = .2)) +``` + + + +## Un petit exemple avec d'autres langages +```{python} +from math import * +x = 3.14 +print(sin(x)) +``` + +```{python} +print(sin(x)) +``` +