What are the different types of input for parameters in rmarkdown?

0 votes
What are the different types of input for parameters in rmarkdown?
Jul 30 in Data Analytics by anonymous
14 views

1 answer to this question.

0 votes

There are different types of inputs that are allowed for a parameter - 

Defined by giving value to label attribute.

  • Slider Input  
  • Numerical/ date/ text Input
  • Password Input
  • select list
  • radio buttons
  • file input

All the types follow the same syntax for defining the parameter.

title: sample
output: html_document
params:
  year:
    label: "Year"
    value: 2017
    input: slider
    min: 2010
    max: 2018
    step: 1
    sep: ""

---

The attributes change depending on the type of input such as value, sep.min,max ,etc.

answered Jul 30 by Cherukuri
• 19,550 points

Related Questions In Data Analytics

0 votes
1 answer

what are the different ways of getting/reading data into for cleaning

there different functions that allow you to ...READ MORE

answered Nov 14, 2018 in Data Analytics by Maverick
• 10,040 points
15 views
0 votes
1 answer

What are the options for deploying models in production with R?

Well, I could say that the answer ...READ MORE

answered Apr 12, 2018 in Data Analytics by DataKing99
• 8,100 points
215 views
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,690 points
245 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
14 views
0 votes
1 answer
0 votes
0 answers

parameterized reports using RMarkdown

Hi, how to add parameters to Rmarkdown ...READ MORE

Jul 30 in Data Analytics by abhishek
12 views
0 votes
0 answers

Error: object 'params' not found.

Hi, i tried to add params to ...READ MORE

Jul 30 in Data Analytics by pragyat
13 views
0 votes
1 answer

% of nulls for each column in the dataset - R

Use code as below -  lapply(air,function(x) { length(which(is. ...READ MORE

answered Jul 4 in Data Analytics by anonymous
• 19,550 points
15 views
0 votes
2 answers

How to change the value of a variable using R programming in a data frame?

You are getting this error since the ...READ MORE

answered 3 days ago in Data Analytics by anonymous
• 19,550 points
113 views