Append r output in the title of rmarkdown document

0 votes
How to append r output in the title of rmarkdown document? Can anyone help?
Aug 5 in Data Analytics by shalini
14 views

1 answer to this question.

0 votes

Insert with `r <code> ` withion markdown text to add r output in rmarkdown document.

Ex: 

---
title: "Rmarkdown Parameters"
output: pdf_document
---
# Markdown document - `r example`
```{r}
example <- "This is an example document"
```

Ex: 

---
title: "Rmarkdown Parameters"
output: pdf_document
---
# Markdown document - `r example`
```{r}
example <- "This is an example document"
```
answered Sep 10 by priya

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer

R function for finding the index of an element in a vector?

Yes, we can find the index of ...READ MORE

answered Apr 13, 2018 in Data Analytics by zombie
• 3,690 points
472 views
0 votes
1 answer

How to limit output of a dataframe in R?

For randomly sampling a row/cell where a ...READ MORE

answered Apr 18, 2018 in Data Analytics by kappa3010
• 2,020 points
59 views
0 votes
1 answer

How can I control the size of points in an R scatterplot?

plot(variable, type='o' , pch=5, cex=.3) The pch argument ...READ MORE

answered May 3, 2018 in Data Analytics by shams
• 3,580 points
40 views
0 votes
1 answer

Display only output and caption with any warnings or code in Rmarkdown

Use echo=FALSE and fig.cap = "caption in ...READ MORE

answered Jul 30 in Data Analytics by anonymous
20 views
0 votes
1 answer
0 votes
0 answers

parameterized reports using RMarkdown

Hi, how to add parameters to Rmarkdown ...READ MORE

Jul 30 in Data Analytics by abhishek
19 views
0 votes
0 answers

Error: object 'params' not found.

Hi, i tried to add params to ...READ MORE

Jul 30 in Data Analytics by pragyat
46 views
0 votes
1 answer

How to write a custom function which will replace all the missing values in a vector with the mean of values in R?

Consider this vector: a<-c(1,2,3,NA,4,5,NA,NA) Write the function to impute ...READ MORE

answered Jul 4, 2018 in Data Analytics by CodingByHeart77
• 3,690 points
161 views
0 votes
1 answer

Remove NA values from the output in R programming

Edit your code: columnmean <- function(x, removeNA = ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 41,460 points
47 views