inTrees (version 1.2)

dataSimulate: Simulate data

Description

Simulate data

Usage

dataSimulate(flag = 1, nCol = 20, nRow = 1000)

Arguments

flag

1 (default): team optimization; 2: non-linear; 3: linear.

nCol

the number of columns in the data set. must >= 2.

nRow

the number of rows in the data set.

Value

predictor variable matrix and target variable

Examples

Run this code
# NOT RUN {
res <- dataSimulate(flag=1)
X <- res$X; 
target <- res$target
# }

Run the code above in your browser using DataCamp Workspace