Description Usage Arguments Examples
A vector can be split by median, mean, a value, or by fivenum. It returns a factor vector.
1 2 3 |
x |
a numeric vector containing the values whose split is to be computed. |
split |
defines the method by which the split has to be operated. It can be a numeric value or a character indicating "mean", median, or "fivenum", respectively if the split is on the mean (see " |
factors |
a character vector containing the two factor names (first is the lower) for the split. It does not work for fivenum that automatically provides factor names. If NULL, factors are automatically coded as "low." and "high." with the vector name attached |
split.mode |
the modality by which values are split: default is "minor equal", (i.e., "<="). Other modalities are "minor" ("<") and "major.equal" (">="). It does not work for fivenum that automatically provides the split by the function " |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.