The function takes a
tibble (or any object that is internally represented
as a (named)
R) of participant(s) data and adds them to the
LimeSurvey participant database of the selected survey.
integer, ID of the survey (as found with
tibble / data.frame / list, object with participant(s)
logical, whether to create token outright. Defaults to
part_data object have to contain three variables:
attribute_1 or so. For the human-readable list of custom
attributes being held in the LimeSurvey participant database of the selected
ls_get_attrs(). However, do not use the "semantic" form, as
ls_add_participants() recognizes only raw, i.e.
Called for a side effect, but returns the inserted data including additional new information like the token string.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
## Not run: # create participant table part_data <- tibble( firstname = "John", lastname = "Doe", email = "email@example.com", language = "cs", attribute_1 = "Example School" ) # insert participant into the LimeSurvey database ls_add_participants(123456, part_data) # check if OK ls_participants(123456) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.