View source: R/delete_plabels.R
delete_plabels | R Documentation |
If you work with MTurk, the MTurk IDs will be stored in the
participant labels variable.
This function deletes this variable in $all_apps_wide
and every app data frame in the list of data frames that was created
by import_otree()
and/or all
variables referring to MTurk, such as participant.mturk_worker_id
.
Caution: This function does not delete the variables from the original CSV and Excel files!
delete_plabels(oTree, del_plabel = TRUE, del_mturk = TRUE)
oTree |
A list of data frames created
with |
del_plabel |
Logical. |
del_mturk |
Logical. |
This function returns a duplicate of the original oTree list of data frames that do not include the participant labels and/or the MTurk variables.
# Use package-internal list of oTree data frames
oTree <- gmoTree::oTree
# Show participant labels
oTree$all_apps_wide$participant.label
oTree$survey$participant.label
# Delete all participant labels
oTree2 <- delete_plabels(oTree)
# Show participant labels again
oTree2$all_apps_wide$participant.label
oTree2$survey$participant.label
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.