RFactor
JavaScript class for R Factor type. A factor has numerical(integer) array with keys.
Constructor Summary
Public Constructor | ||
public |
constructor(data: *, levels: *, ordered: *) Create a factor. |
Public Constructors
public constructor(data: *, levels: *, ordered: *) source
Create a factor.
Params:
Name | Type | Attribute | Description |
data | * | {string[]} String array indicate category, like ["male", "female", "male", ...] |
|
levels | * | {Object} Category item like ["male", "female"] |
|
ordered | * | {boolean} If true, this factor is ordered factor (nominal) |