shift: Shift construct or element to first position.

Description Usage Arguments Value Author(s) Examples

Description

Shifts the whole grid vertically or horizontally so that the order remains the same but the prompted element or construct appears in first position.

Usage

1
shift(x, c = 1, e = 1)

Arguments

x

repgrid object.

c

Index of construct to be shifted to first position.

e

Index of element to be shifted to first position.

Value

repgrid object.

Author(s)

Mark Heckmann

Examples

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

   # shift element 13: 'Ideal self' to first position
   shift(feixas2004, 13)    

   x <- randomGrid(5,10)
   shift(x, 3, 5)

## End(Not run)


Search within the OpenRepGrid package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.