Data Sampling
Data Sampling
Input Data
*Target Data | Input data |
*Output Name | Name of the output after data sampling |
Remainder | Name of the remainder(optional)
|
Arguments
Sampling Type | 1)frac or 2)n If frac is selected, write the fraction(0-1) of rows to select in Sampling Size. For n, write the number of rows to select. |
replace | If TRUE, it samples with replacement. |
weight | Sampling weights |
Since we set Sampling Size as 0.6, the sample data frame has 3000 rows while the original data frame has 5000 rows. (5000*0.6=3000)
R Packages
Data Sampling: https://cran.r-project.org/web/packages/dplyr/index.html
Last updated