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
719 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 12, 2020 in Data Analytics by Rajiv
• 8,870 points
56,683 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
3,451 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,670 points
1,289 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 31, 2019 in Data Analytics by anonymous
696 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 31, 2019 in Data Analytics by anonymous
1,412 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
1,123 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
3,130 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,750 points
4,597 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,350 points
895 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP