score_recovery: Recover the weights given in the boxes generated by...

Description Usage Arguments Value Author(s) Examples

View source: R/generic_functions.R

Description

Recover the weights that the user has put in the boxes generated by 'create_numeric_input()'

Usage

1
score_recovery(selectedcounts, input, id)

Arguments

selectedcounts

amount of variable selected in the selectize input

input

input id from shiny

id

id to add when we want to use the functions more than one time in the app

Value

return a vector containing the numbers the user selected from 1:10

Author(s)

Marie Bellier, Massimo Finini, Meri Likoska, Vania Rodrigues Telo Ramos, Xavier Renger

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#let's say the user selected those anime in the app
selectize <- c("Naruto", "Death Note", "One Piece")

#we will use both selectize_names and selectize_count
names <- selectize_names(selectize)
count <- selectize_count(selectize)

#we can then create the inputs
inputs <- create_numeric_input(names, count, id = "example")

#to recover the weight entered by the user we then run
## Not run: 
x <- score_recovery(count, input, id = "example")

## End(Not run)

#note that input are the input from shiny server
#and that this code cannot be ran outside the
#application therefore we do not provide any output here

ptds2021/project--G5 documentation built on Dec. 22, 2021, 9:59 a.m.