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, 2019 in Data Analytics by shalini
148 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, 2019 by priya

Related Questions In Data Analytics

0 votes
1 answer
0 votes
2 answers

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

The function match works on vectors : x <- sample(1:10) x # ...READ MORE

answered Dec 11, 2020 in Data Analytics by Rajiv
• 8,880 points
38,412 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,090 points
547 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,660 points
410 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, 2019 in Data Analytics by anonymous
117 views
0 votes
1 answer

display the output r code as title in R script Rmarkdown script to html page

Use the file input from parameter and ...READ MORE

answered Jul 30, 2019 in Data Analytics by anonymous
382 views
0 votes
1 answer

parameterized reports using RMarkdown

Add params attribute like below specifying dataset ...READ MORE

answered Nov 4, 2019 in Data Analytics by kamal
331 views
0 votes
1 answer

Error: object 'params' not found.

@pragyat, Remove " " around data value in ...READ MORE

answered Nov 4, 2019 in Data Analytics by priya
1,124 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,720 points
1,751 views
+1 vote
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
• 52,310 points
153 views