subassign: Method for "<-" assignment of the repgrid ratings.

Description Usage Arguments Author(s) Examples

Description

It should be possible to use it for ratings on all layers.

Usage

1
2
## S4 replacement method for signature 'repgrid'
x[i, j, ...] <- value

Arguments

x

A repgrid object.

i, j

Row and column indices.

...

Not evaluated.

value

Numeric replacement value(s).

Author(s)

Mark Heckmann

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
x <- randomGrid()
x[1,1] <- 2
x[1, ] <- 4
x[ ,2] <- 3
   
# settings values outside defined rating scale 
# range throws an error
x[1,1] <- 999
   
# removing scale range allows arbitary values to be set
x <- setScale(x, min = NA, max=NA) 
x[1,1] <- 999

## End(Not run)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.