dataSimulate: Simulate data

View source: R/dataSimulate.R

dataSimulateR Documentation

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

res <- dataSimulate(flag=1)
X <- res$X; 
target <- res$target

inTrees documentation built on June 1, 2022, 1:06 a.m.