Skip to contents

Methods for "[", i.e., subsetting of repgrid objects.

Usage

# S4 method for repgrid
[(x, i, j, ..., drop = TRUE)

Arguments

x

A repgrid object.

i, j

Row and column indices.

...

Not evaluated.

drop

Not used.

Examples


x <- randomGrid()
x[1:4, ]
#> 
#> META DATA:
#> Number of constructs:  4 
#> Number of elements:  15 
#> 
#> SCALE INFO:
#> The grid is rated on a scale from 1 (left pole) to 5 (right pole)
#> 
#> RATINGS:
#>                                    8 - by flees                       
#>                     beyond she - 7 | 9 - I customer Mark who          
#>  by essentially good Johnson - 6 | | | 10 - Brownstone him is airplane
#> ricks initially initially  - 5 | | | | | 11 - Harry the money away    
#>             customer man - 4 | | | | | | | 12 - Harry activity        
#>  beyond fishing initia - 3 | | | | | | | | | 13 - paying back has nove
#>       the has forces - 2 | | | | | | | | | | | 14 - what of           
#>                she - 1 | | | | | | | | | | | | | 15 - an back is essen
#>                      | | | | | | | | | | | | | | |                    
#>       the Mark (1)   2 1 5 5 4 1 2 1 4 2 1 5 1 3 1   (1) he           
#> ng man economi (2)   2 1 5 1 1 3 2 3 1 4 2 5 5 1 5   (2) forces his   
#> ricks into man (3)   2 4 5 1 1 5 4 3 4 3 4 5 4 3 5   (3) his customer 
#> he him the man (4)   4 4 3 4 4 4 5 1 5 2 2 3 4 5 1   (4) good away the
#> 
x[, 1:3]
#> 
#> META DATA:
#> Number of constructs:  10 
#> Number of elements:  3 
#> 
#> SCALE INFO:
#> The grid is rated on a scale from 1 (left pole) to 5 (right pole)
#> 
#> RATINGS:
#>                        2 - the has forces     
#>                she - 1 | 3 - economic beyond f
#>                      | | |                    
#>       the Mark (1)   2 1 5   (1) he           
#> ng man economi (2)   2 1 5   (2) forces his   
#> ricks into man (3)   2 4 5   (3) his customer 
#> he him the man (4)   4 4 3   (4) good away the
#>    is customer (5)   2 1 3   (5) Harry away   
#>  Harry fishing (6)   3 4 2   (6) she an Mr. Ma
#> essentially is (7)   1 4 3   (7) initially for
#> the as is away (8)   4 5 1   (8) Johnson I act
#> hout owes away (9)   5 5 5   (9) he he into de
#> good airplane (10)   4 3 5   (10) charter cust
#> 
x[1:4, 1:3]
#> 
#> META DATA:
#> Number of constructs:  4 
#> Number of elements:  3 
#> 
#> SCALE INFO:
#> The grid is rated on a scale from 1 (left pole) to 5 (right pole)
#> 
#> RATINGS:
#>                        2 - the has forces     
#>                she - 1 | 3 - economic beyond f
#>                      | | |                    
#>       the Mark (1)   2 1 5   (1) he           
#> ng man economi (2)   2 1 5   (2) forces his   
#> ricks into man (3)   2 4 5   (3) his customer 
#> he him the man (4)   4 4 3   (4) good away the
#> 
x[1, 1]
#> 
#> META DATA:
#> Number of constructs:  1 
#> Number of elements:  1 
#> 
#> SCALE INFO:
#> The grid is rated on a scale from 1 (left pole) to 5 (right pole)
#> 
#> RATINGS:
#>                she - 1   
#>                |         
#> the Mark (1)   2   (1) he
#>