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, 2019 in Data Analytics by abhishek
253 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, 2019 by kamal

Related Questions In Data Analytics

+1 vote
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
86 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,580 points
891 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,580 points
282 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 Sahiti
• 6,320 points
974 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
81 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
211 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
762 views
0 votes
1 answer

rmarkdown Parameters declaration and using parameters

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

answered Jul 30, 2019 in Data Analytics by anonymous
159 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,210 points
1,034 views
0 votes
3 answers

How can I add YAML current date in rmarkdown ?

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

answered Mar 25, 2019 in Data Analytics by Anupam Das
5,246 views