impoorIdeal: Import Data to create a 'TrtDataIdeal' object.

Description Usage Arguments Details Value See Also

View source: R/2-1-import.R

Description

A user-friendly function to create a TrtDataIdeal object.

Usage

1
impoorIdeal(X, trtResp1, trtResp2, label)

Arguments

X

A matrix or data.frame containing all samples/variables. It has to be numeric and cannot be left blank. Any variable with missing value will be removed.

trtResp1

A numeric vector, indicating the response under the first treatment.

trtResp2

A numeric vector, indicating the response under the second treatment.

label

A character vector of length two, the unique treatment labels. The default is levels(trtLabl).

Details

This function takes data set and generate an TrtDataIdeal in a flexible way:

X can be either a matrix of a data.frame, of which each column is a numeric predictor of the data set and each row is all predictor values for a sample. X should contain all samples/variables.

Value

An TrtDataIdeal object.

See Also

TrtDataIdeal-class


SkadiEye/ITRlearn documentation built on May 24, 2019, 1:31 a.m.