df_long {OpenRepGrid}R Documentation

Sample dataframe with grid data (long)

Description

This dataframe can be converted into a repgrid object via importDataframe(). The long format has this name because it has few columns and many rows. It is a common format in data analytics. Here, each row contains a different element-construct combination and the corresponding rating value. The format looks like this:

Details

element left_pole right_pole rating preferred_pole rmin rmax
⁠element 1⁠ ⁠left pole 1⁠ ⁠right pole 1⁠ 5 left 1 5
element_2 ⁠left pole 1⁠ ⁠right pole 1⁠ 3 left 1 5
element_3 ⁠left pole 1⁠ ⁠right pole 1⁠ 1 left 1 5

The columns element, left_pole, right_pole, and rating are mandatory, the columns preferred_pole, rmin, and rmax are optional. rmin and rmax contain the min and max of the rating scale. Alternatively, you may pass rmin and rmax as arguments in the function call.

See Also

importDataframe()

Other grid dataframes: df_construct_columns, df_element_columns

Examples

df_long
importDataframe(df_long, format = "long")

[Package OpenRepGrid version 0.1.18 Index]