Description Usage Arguments Value Examples
Create a Link to Tidy Data Tutor from an R Code Chunk
1 | tdt_chunk(chunk)
|
chunk |
The name of an R code chunk in the current R Markdown document. |
A string with an appropriately formatted URL to Tidy Data Tutor.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
<!--- In an R Markdown document: --->
```{r mtcars-1}
library(dplyr)
mtcars %>%
select(mpg, cyl, hp) %>%
group_by(cyl) %>%
summarise(mean(hp))
```
[See this pipeline in Tidy Data Tutor](`r tdt_chunk("mtcars-1")`)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.