Description Usage Arguments Value See Also Examples
Hides the true location of the data as a non-obvious calculation string.
1 | hideLocation(trueLoc, nSubjects)
|
trueLoc |
A vector of one or more numbers in the set 1, 2, ..., nSubjects whose locations are to be hidden. |
nSubjects |
An integer larger than 1 used to define the set 1, 2, ..., nSubjects. |
Returns a character vector, each element being a string
containing an obscure calculation which, if parsed and evaluated, would return
the value of the corresponding number in trueLoc
.
1 2 3 4 5 6 7 8 9 10 | trueLoc <- hideLocation(3,100)
trueLoc
revealLocation(trueLoc)
n <- 200
trueLoc <- sample(1:n, 3)
trueLoc
ans <- hideLocation(trueLoc , n)
ans
revealLocation(ans)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.