melt_datawiz: Convert DataWiz data into long format

Description Usage Arguments Value

View source: R/datawiz.R

Description

DataWiz files have several columns F0, F33, F67, etc. for each time sample. This function converts a dataframe from such a file into a long format, where there is a single time column and single column of gaze responses.

Usage

1
melt_datawiz(df, key_col = "Time", value_col = "Look")

Arguments

df

a dataframe created by reading a datawiz file

key_col

the name of the new column that holds the time values

value_col

the name of the new column that holds the looking data at each time sample

Value

a long data-frame


tjmahr/littlelisteners documentation built on June 3, 2021, 2:10 p.m.