Generate an HTML slider input
slider(min = 0, max = 100, step = 1, value = mean(c(min, max)), title = "")
min | minimum |
---|---|
max | maximum |
step | increment |
value | starting value |
title | title of input |
# Run this in a cell to display a number input input <- slider(min = 1, max = 10, step = 1, value = 5, title = "Your title") # In another cell, retrieve the value of the slider input: as.numeric(input)#> [1] 5