Description Usage Arguments Value
View source: R/create_knapsack_data.R
Create knapsack
1 2 3 4 | create_knapsack_data(
n,
seed = set.seed(42, kind = "Mersenne-Twister", normal.kind = "Inversion")
)
|
n |
is the number of samples |
seed |
is defines which seed to use. Default value is 42 with some extra specifications of kind. |
returns a data.frame of generated knapsack data. The data has 2 columns and n rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.