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
67 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
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,750 points
21,332 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
153 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,630 points
178 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
71 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
180 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
234 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
689 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,021 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
• 51,950 points
92 views