sample1 | R Documentation |
Returns one (default) or several numbers from a range of numbers generated by the seq() function.
sample1(from = 1, to = 100, by = 1, size = 1)
from |
Starting value of the range ob possible values. |
to |
Ending value of the range of possible values. |
by |
Step size for the range of possible values. |
size |
Number of random values to draw. |
# Return one integer out of the set {1, 2,..., 100}
sample1()
# Return two integers out of the set {0, 2.5, 5, 7.5, 10}
sample1(from = 0, to = 10, by = 2.5, size = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.