powered by
This wrapper around sign() provides a more intuitive labeling.
sign()
compare(x, y, verbose = FALSE)
a factor with three levels (<, =, and > if verbose is FALSE)
<
=
>
verbose
FALSE
numeric verctors to be compared item by item
a logical indicating whether verbose labeling is desired
tally( ~ compare(mcs, pcs), data = mosaicData::HELPrct) tally( ~ compare(mcs, pcs, verbose = TRUE), data = mosaicData::HELPrct) tally( ~ compare(sexrisk, drugrisk), data = mosaicData::HELPrct)
Run the code above in your browser using DataLab