
Sample dataframe with grid data (constructs are columns)
Source:R/data-openrepgrid.r
df_construct_columns.RdThis dataframe can be converted into a repgrid object via importDataframe(). The columns names are elements
followed by the constructs (left_pole_1:right_pole_1 to left_pole_3:right_pole_3). The poles are separated by a
colon by default (change via arg pole_sep). The rows contain the elements' entries (element name and ratings). The
min and max of the rating scale should be passed explicitly via the args rmin and rmax. See sample data
df_construct_columns.
Details
elements | left_pole_1:right_pole_1 | left_pole_2:right_pole_2 | left_pole_3:right_pole_3 | element_1 |
5 | 3 | 2 | element_2 | 3 |
3 | 4 | element_3 | 1 | 5 |
2 | element_4 | 4 | 3 | 3 |
See also
Other grid dataframes:
df_element_columns,
df_long
Examples
df_construct_columns
#> # A tibble: 4 × 4
#> element left pole 1:right po…¹ left pole 2:right po…² left pole 3:right po…³
#> <chr> <chr> <chr> <chr>
#> 1 element 1 5 3 2
#> 2 element 2 3 3 4
#> 3 element 3 1 5 2
#> 4 element 4 4 3 3
#> # ℹ abbreviated names: ¹`left pole 1:right pole 1`,
#> # ²`left pole 2:right pole 2`, ³`left pole 3:right pole 3`
importDataframe(df_construct_columns, format = "construct_columns", rmin = 1, rmax = 5)
#>
#> META DATA:
#> Number of elements: 4
#> Number of constructs: 3
#> Preferred poles defined: 0/3
#>
#> SCALE INFO:
#> The grid is rated on a scale from 1 (left pole) to 5 (right pole)
#>
#> RATINGS:
#> element 2 - 2 3 - element 3
#> element 1 - 1 | | 4 - element 4
#> | | | |
#> left pole 1 (.1) 5 3 1 4 (1.) right pole 1
#> left pole 2 (.2) 3 3 5 3 (2.) right pole 2
#> left pole 3 (.3) 2 4 2 3 (3.) right pole 3
#>
#> Poles: (+) = preferred , (-) = non-preferred , (/) = none , (.) = not defined