randomGrids: Generate a list of random grids (quasis) of prompted size.

Description Usage Arguments Value Author(s) Examples

View source: R/dev-functions.r

Description

This feature is useful for research purposes like exploring distributions of indexes etc. The function is a simple wrapper around randomGrid.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
randomGrids(
  rep = 3,
  nc = 10,
  ne = 15,
  nwc = 8,
  nwe = 5,
  range = c(1, 5),
  prob = NULL,
  options = 1
)

Arguments

rep

Number of grids to be produced (default is 3).

nc

Number of constructs (default 10).

ne

Number of elements (default 15).

nwc

Number of random words per construct.

nwe

Number of random words per element.

range

Minimal and maximal scale value (default c(1, 5)).

prob

The probability of each rating value to occur. If NULL (default) the distribution is uniform.

options

Use random sentences as constructs and elements (1) or not (0). If not, the elements and constructs are given default names and are numbered.

Value

A list of repgrid objects.

Author(s)

Mark Heckmann

Examples

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

     x <- randomGrids()
     x
     x <- randomGrids(5, 3, 3)
     x
     x <- randomGrids(5, 3, 3, options=0)
     x

## End(Not run)

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