Skip to contents

Set or Edit Attribute(s) of an Participant

Usage

ls_set_participant_properties(survey_id, participant, ...)

Arguments

survey_id

integer, ID of the survey (as found with ls_surveys(), e.g.).

participant

integer or list, one token ID (not token!) from participant database. Use ls_participants() to get the tid. Another option is to pass a list of one ore more participant properties, i.e. list(lastname = "Doe")

...

attributes in the form attribute_name = attribute_value.

Value

A tibble with the participant row just edited.

See also

Examples

if (FALSE) {
ls_set_participant_properties(123456,
  participant = 18, email = "new@email.cz",
  attribute_1 = 600123456
)
}