bindConstructs: Concatenate the constructs of two grids.

Description Usage Arguments Value Note Author(s) References Examples

View source: R/repgrid-basicops.r

Description

Concatenate the constructs of two grids. I.e. the constructs are combined to form one long grid. This function can be used in order to analyse multiple grids as one 'big grid' (eg. Slater, 1977, chap. 11).

Usage

1

Arguments

x

repgrid object

y

repgrid object

match

Constructs will only be combined if they refer to the same set of elements. If the elements are not the same or do not have the same order no binding is done (if test=TRUE, default).

Value

repgrid object

Note

Currently the grids are joined regardless if the column names are identical or not. Handle this function with care and make sure the elements of the grids are in the same order. In a future version automatic testing of construct identity will take place. TODO: Does not work well yet.

Author(s)

Mark Heckmann

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

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

bindConstructs(a, b, m=F)       # no binding

## End(Not run)

OpenRepGrid documentation built on May 31, 2017, 2:32 a.m.