Import_Questions_Rand: Add Randomization Question

Import_Questions_RandR Documentation

Add Randomization Question

Description

This imports some randomizer questions that yeild a random value from 1 to the value specified in the randomizer variable

Usage

Import_Questions_Rand(Import_Table, Folder_Location_Templates = "Templates")

Arguments

Import_Table

data.table specifying the sid, gid, title, randomizer

  • sid: <this column is mandatory!> the sid of the survey where you want to place a randomization question

  • gid: <this column is mandatory!> the gid where the randomization question should live

  • title: <this column is mandatory!> the name of the randomization question

  • randomizer: <this column is mandatory!> the highest number of the randomization- it will randomize between 1 and this number (integers)

  • template: <this column is mandatory!> the name of the question template for the randomization question. If you use one other than the "randomizer.lsq" provided, you'll need to make sure the lsq has the title stored as "PLACEHOLDER" and that the default value of the question is set to "RANDOMVALUES". Honestly, it's best to use the provided template.

Folder_Location_Templates

<optional, defaults to "Templates">: this is where the randomization question template is stored.


bpresentati/surveyR documentation built on March 19, 2022, 3:40 a.m.