pivot_dyad | R Documentation |
Widen dataframe by dyad member.
At this point, you should have merged your data using load_list
and long stack
,
filtered using relevant criteria using filter_rows
,
removed orphans with remove_orphans
, and smushed with smush_rows
.
pivot_dyad(dat, id_num, output_dir)
dat |
Dataframe. |
id_num |
Participant identifier. Defaults to first column in dataframe. |
output_dir |
Where you want your dataframes to be saved to. |
For dyadic data, this is the last step in the workflow.
Also note that this function removes the frame
variable, leaving behind only timestamp
or new_timestamp
.
This will output two dataframes: 1) an extra long dataframe by dyad member, and 2) a slightly wider dataframe where each dyad members has their own Action Unit column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.