wide_to_long: Convert wide data to the long format
Description
Convert wide data to the long format
Usage
wide_to_long(data)
Value
The data converted into long format. A data.frame with three columns
item, rater and rating.
Arguments
data
Data in a wide format. Must be 2D data object which can be
converted to a data.frame
Details
Wide data refers to a way of laying out categorical rating data
where each item is one row and each column represents the ratings of each
rater. Elements of the data can be NA, indicating that an item wasn't
rated by a rater. Wide data cannot represent the same rater rating an item
multiple times.
Currently any column names of the data are ignored and the raters are
labelled by their column position (1 indexed, left to right). Only numeric
ratings are currently supported.