Learn R Programming

OpenRepGrid (version 0.1.18)

df_long: 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:

Arguments

Details

elementleft_poleright_poleratingpreferred_polerminrmax
element 1left pole 1right pole 15left15
element_2left pole 1right pole 13left15
element_3left pole 1right pole 11left15

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

Run this code
df_long
importDataframe(df_long, format = "long")

Run the code above in your browser using DataLab