compare | R Documentation |
This wrapper around sign()
provides a more intuitive labeling.
compare(x, y, verbose = FALSE)
x, y |
numeric verctors to be compared item by item |
verbose |
a logical indicating whether verbose labeling is desired |
a factor with three levels (<
, =
, and >
if verbose
is FALSE
)
tally( ~ compare(mcs, pcs), data = mosaicData::HELPrct)
tally( ~ compare(mcs, pcs, verbose = TRUE), data = mosaicData::HELPrct)
tally( ~ compare(sexrisk, drugrisk), data = mosaicData::HELPrct)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.