Description Usage Arguments Value Examples
This function takes wide format free recall data where all responses are stored in the same cell and converts it to long format.
1 | arrange_data(data, responses, sep, id, repeated = NULL)
|
data |
a dataframe of the variables you would like to return. Other variables will be included in the returned output in long format if they represent a one to one match with the participant ID. If you have repeated data, please use the repeated argument or run this function several times for each trial. |
responses |
a column name in the dataframe that contains the participant answers for each item in quotes (i.e., "column") |
sep |
a character separating each response in quotes - example: ",". |
id |
a column name containing participant ID numbers from the original dataframe |
repeated |
(optional) a single column name or set of columns that indicate repeated measures columns you would like to keep with the data. You should include all columns that are not a one to one match with the subject ID (i.e., participants saw multiple trials). Please see our vignette for an example. |
A dataframe of the participant answers including:
Sub.ID |
The participant id number |
response |
The participant response |
position |
The position number of the response listed |
other |
Any additional columns included |
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.