This functions transform a comparison or otherwise logical value to a numeric value for use in a pim.
1 2 3 
x 
for 
y 
a numeric value or 
These functions are constructed purely for notation.
P
is completely equivalent
to as.numeric
, apart from an extra control
to check whether it actually makes sense to do so.
The function PO
is just short for P(x < y) + 0.5*P(x == y)
either 0 or 1
1  # Check in pim

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.