rating: Add a rating to the slide

View source: R/rating.R

ratingR Documentation

Add a rating to the slide

Description

Adds a rating to the current slide. It will return the corresponding 'iframe' tag which will show the rating results. This function must be called once per rating.

Usage

rating(question, max_value = 5, width = "100%", height = "500px")

Arguments

question

A character -string- representing the rating question.

max_value

A numeric indicating the max value of the rate. The minimum value will be 2.

width

A character with a valid html 'width' value for the iframe.

height

A character with a valid html 'height' value for the iframe.

Value

An html 'iframe' tag which will show the rating results.


jcrodriguez1989/interactingan documentation built on June 7, 2024, 10:57 a.m.