parameterized reports using RMarkdown

0 votes
Hi, how to add parameters to Rmarkdown script to change the dataset and fields to .Rmd file as per user choice?
Jul 30 in Data Analytics by abhishek
41 views

1 answer to this question.

0 votes

Add params attribute like below specifying dataset options.

Ex:

---
title: "Rmarkdown Parameters"
output: html_document
params:
  data: mpg
  year: 2017
---

See the below manual for more information on parameterized reports.

https://bookdown.org/yihui/rmarkdown/params-knit.html

answered Nov 4 by kamal

Related Questions In Data Analytics

0 votes
1 answer

Join using two mappers - invalid inputfile exception

Dear Learner, Hope you are doing well. Can you ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
36 views
0 votes
1 answer

Using "dplyr" to summarise multiple columns

You can use the "sumamrise_all()" function for ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,560 points
339 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

The below is the code to perform ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,560 points
135 views
0 votes
1 answer

How to change y axis max in time series using R?

The axis limits are being set using ...READ MORE

answered Apr 3, 2018 in Data Analytics by darklord
• 6,190 points
213 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
28 views
0 votes
1 answer
0 votes
1 answer

Error: object 'params' not found.

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

answered Nov 4 in Data Analytics by priya
92 views
0 votes
1 answer

rmarkdown Parameters declaration and using parameters

Create parameters using params attribute inside Rmarkdown ...READ MORE

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

How to forecast season and trend of data using STL and ARIMA in R?

You can use the forecast.stl function for the ...READ MORE

answered May 18, 2018 in Data Analytics by DataKing99
• 8,130 points
617 views
0 votes
3 answers

How can I add YAML current date in rmarkdown ?

<$today:MM/dd/yyyy> READ MORE

answered Mar 25 in Data Analytics by Anupam Das
2,183 views