From 7d6e918f66276fad13c6b1813587be6146b4a0fe Mon Sep 17 00:00:00 2001 From: lindangulopez Date: Sat, 1 Jun 2024 19:36:54 +0200 Subject: [PATCH] R tuto --- journal-de-bord/tutorial.Rmd | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 journal-de-bord/tutorial.Rmd diff --git a/journal-de-bord/tutorial.Rmd b/journal-de-bord/tutorial.Rmd new file mode 100644 index 0000000..25cd451 --- /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)) +``` + -- 2.18.1