View source: R/dev-functions.r
randomGrid | R Documentation |
This feature is useful for research purposes like exploring distributions of indexes etc.
randomGrid(
nc = 10,
ne = 15,
nwc = 8,
nwe = 5,
range = c(1, 5),
prob = NULL,
options = 1
)
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 |
prob |
The probability of each rating value to occur.
If |
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. |
repgrid
object.
## Not run:
x <- randomGrid()
x
x <- randomGrid(10, 25)
x
x <- randomGrid(10, 25, options = 0)
x
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.