Learn R Programming

OpenRepGrid (version 0.1.9)

center: Centering of rows (constructs) and/or columns (elements).

Description

Centering of rows (constructs) and/or columns (elements).

Usage

center(x, center = 1, ...)

Arguments

x
repgrid object.
center
Numeric. The type of centering to be performed. 0= no centering, 1= row mean centering (construct), 2= column mean centering (elements), 3= double-centering (construct and element means), 4= midpoint centering of rows (constructs). of the scale(default FALSE). Default is 1 (row centering).
...
Not evaluated.

Value

matrix containing the transformed values.

Examples

Run this code
## Not run: 
# 
#  center(bell2010)						      # no centering
#  center(bell2010, rows=T)				  # row centering of grid
#  center(bell2010, cols=T)				  # column centering of grid
#  center(bell2010, rows=T, cols=T)	# row and column centering
# ## End(Not run)

Run the code above in your browser using DataLab