Description Usage Arguments Details Value
A function to delete columns from the data based on data and/or user requests.
1 2 | delete_columns(d, del_col = NULL, del_mode = c("auto", "user", "mixed"),
verbose = TRUE)
|
d |
data.frame the columns of which are to be deleted |
del_col |
numeric. Vector of column numbers to be deleted. |
del_mode |
how to determine which columns have to be deleted. Can be one of: “auto” (decide based on data), “user” (only take into account user's requests), “mixed” (take into account user request and data). “auto” is used by default if "del_col" is not specified; if it is, “mixed” is used. See Details |
verbose |
logical. If |
The first seven columns in IBEX results always are:
Time the results are received
MD5 hash of participant's IP
Controller type
Item number
Element number
Type
Group
By default, the deletion mode is “auto”. It means that the function will remove columns not containing useful information. This means:
"md5 hash" column is always removed since it's not usually used in analyses
"controller" column is removed if there is just one controller in the data - it is assumed, the user will know what controller that is
"element number" column is removed if that column only contains zeros
"group" column is removed if it only contains 'NULL' values
The above applies to all controllers. In addition:
for DashedSentence and DashedAccpetabilityJudgment column 11
("line break") is removed if it only contains FALSE
values.
For
DashedAcceptabilityJudgment only column 15 ("is.correct") is removed if it
contains only NULL
valuess (if this is the case, it means that correct
answers were not specified in IBEX, so this column is of no use).
In “user” deletion mode the data will not be taken into account at all, and only the columns specified by user will be deleted.
In “mixed” deletion mode the columns to delete are the union of the sets of automatically deleted columns and user-specified columns.
data.frame 'd' with deleted columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.