Description Usage Arguments Details Author(s) Examples
This function splits a vector into several parts depends on the proportions provided.
1 | multiParts(y,p)
|
y |
vector. to be splited. |
p |
numeric vector. The proportion of each parts. |
By calling 'sample' function with 'replace=FALSE', the provided vector can be splited into different proportion which follows the proportion provided. Row number will be returned for each proportion in list.
Sixiang Hu
1 | multiParts(1:100,c(0.25,0.25,0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.