• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiónaa22023e835eeb73e75acf6fe08e34c7ffe16e5e (tree)
Tiempo2021-03-15 19:39:06
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

A short rmarkdown file illustrating how to use variables calculated in R inside the main text of a document.

Cambiar Resumen

Diferencia incremental

diff -r b3f93fcba22c -r aa22023e835e markdown/test_variable.Rmd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/markdown/test_variable.Rmd Mon Mar 15 11:39:06 2021 +0100
@@ -0,0 +1,19 @@
1+---
2+title: "Country Focus in the Year x."
3+output: word_document
4+---
5+
6+
7+```{r seq, echo=FALSE, eval=T}
8+library(tidyverse)
9+x <- tibble(value=seq(2000,2020)) %>%
10+ pull(value) %>%
11+ max()
12+
13+y <- x*2
14+
15+```
16+
17+Section
18+
19+The number of years is `r x` and `r y`.