Description Usage Arguments Examples
View source: R/comma-sep-to-matrix.R
Converts a variable containing list of selections, e.g. 1,4,10 to a list of variables, e.g. V1, V2, ..., V10, containing TRUE of FALSE indicating whether the corresponding item was selected. BUG: The function may fail mysteriously if one of the 'inputs' is not a number between 1 and the maximum number.
1 |
x |
variable to convert |
sep |
(default ',') separator between numbers |
(default |
'Q') name for new variable, which will be followed by numbers to identify each question. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.