bindConstructs: Concatenate the constructs of two or more grids.

View source: R/repgrid-basicops.r

bindConstructsR Documentation

Concatenate the constructs of two or more grids.

Description

I.e. the constructs are combined to form one long grid. The girds must have the same set of elements and an identical scale range. The order of the elements may differ.

Usage

bindConstructs(..., index = FALSE)

Arguments

...

One or more repgrid objects or a list containing repgrid object.

index

TODO. Logical (default TRUE). Whether to add an index at the end of each construct name so it remains clear from which grid each construct came.

Details

This function can be used in order to analyze multiple grids as one 'big grid' (eg. Slater, 1977, chap. 11).

Value

repgrid object with concatenated constructs.

References

Slater, P. (1977). The measurement of intrapersonal space by grid technique. London: Wiley.

Examples


a <- randomGrid()
b <- randomGrid()
elements(b) <- rev(elements(a)) # reverse elements
bindConstructs(a, b)
bindConstructs(a, b, a)

# using lists of repgrid objects
bindConstructs(a, list(a, b))


markheckmann/OpenRepGrid documentation built on April 14, 2024, 8:15 a.m.