comparable_help | R Documentation |
Determines whether modes of arguments are comparable (i.e., sortable and compatible with each other), meaning that the are either all character, all logical, all numeric, or all ordered factor with the same set of levels (in the same order).
comparable_help()
comparable(..., .rec = FALSE)
comparable_xy(x, y, rec = FALSE)
... |
An arbitrary number of arguments to be checked for comparability with each other. |
x , y |
Arguments to be checked for comparability. |
rec , .rec |
|
A logical scalar.
comparable()
: Check an arbitrary number of ...
arguments for comparability. Also checks for mutual recyclability when .rec = TRUE
.
comparable_xy()
: Checks x
and y
for comparability. Also checks for mutual recyclability when rec = T
.
az. <- letters
comparable(1:10, pi, exp(1))
comparable(az., az., "", "!")
comparable(az., factor(az.))
comparable(1:10, 1:3, rec. = TRUE)
comparable(list(az., 1:10), az., 1:10)
comparable(factor(az., az., ordered = T), factor("q", az., ordered = T))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.