Skip to contents

Wide-formatted Data-frame

Usage

to_wide(df, variable, device = FALSE, device_proc = "mean")

Arguments

df

Input data-frame in long format.

variable

A valid column name denoting the variable of interest.

device

A boolean denoting if this is the device data-frame; default assumes grader data-frame.

device_proc

Summarises how the multiple device images should be dealt with. If it is a continuous variable, you can specify to take either the mean or median as the value. Otherwise, specify an integer denoting the image number to take.

Value

A wide data-frame of the variable of interest with graders as column names.