Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compareValues

Compares two values


Description

This is a helper function to compare two values.

Usage

compareValues(A,B,tolerance=0.1)

Arguments

A

A number

B

A number

tolerance

Specify how similar values have to be to be treated as different. Differences smaller than or equal to the tolerance are ignored.

Details

This is a helper function compare two values. Two values are more or less the same, or one of the two is bigger.

Value

The function returns number to describe the relationship: -1 if A is bigger, 1 if B is bigger, and 0 if the two are more or less the same.

Author(s)

Didier Ruedin


agrmt

Calculate Concentration and Dispersion in Ordered Rating Scales

v1.42.4
MIT + file LICENSE
Authors
Didier Ruedin [aut, cre] Clem Aeppli [ctb]
Initial release
2020-08-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.