Description Usage Arguments Details Value Examples
Performs a random partition of the indices that refer to a given data set (data frame or matrix)
1 | do.random.partition(n.ex, n.partitions, seed = 0)
|
n.ex |
number of indices to be partitioned |
n.partitions |
number of partitions |
seed |
seed for the random generator |
The partition of the data is performed using only the indices of the data not the data itself
a list with n.partitions
elements. Each element stores the indices of the partition.
1 | do.random.partition(100, 10)
|
Warning message:
replacing previous import 'BBmisc::isFALSE' by 'backports::isFALSE' when loading 'ParamHelpers'
[[1]]
[1] 5 96 58 62 99 79 92 22 81 69
[[2]]
[1] 88 97 75 85 39 12 52 31 7 11
[[3]]
[1] 48 4 82 6 16 43 66 56 29 59
[[4]]
[1] 32 14 74 1 35 9 77 25 84 100
[[5]]
[1] 18 91 13 51 80 67 71 37 55 15
[[6]]
[1] 65 10 26 40 45 57 70 83 89 53
[[7]]
[1] 2 27 72 76 28 17 46 64 44 95
[[8]]
[1] 63 87 33 42 93 68 78 23 34 30
[[9]]
[1] 21 19 24 3 60 94 36 20 98 50
[[10]]
[1] 54 8 47 38 49 86 90 41 61 73
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.