| ptvalue | R Documentation |
This class allow to print precision teaching mesures with the
times or the division symbols like \times 2 or \div 1.4 by
converting numeric values to precision teaching values. More specifically,
input values between ] 0, 1 [ will return output values greater or
equal than 1 prefixed with \div; input values between [ 1,
\infty [ will return output values greater or equal than 1 prefixed
with \times.
ptvalue(x = double())
is_ptvalue(x)
as_ptvalue(x, ...)
## Default S3 method:
as_ptvalue(x, ...)
x |
A numeric vector. Values must be greater than 0. |
... |
Other values passed to method. |
A few arithmetic operations will be allowed in the futur. It is currently under development.
A numeric vector of class ptvalue that represent precision teaching mesures.
x <- c(0.5, 0.8, 1, 1.25, 2)
ptvalue(x)
x <- c(0.5, 1, 2)
as_ptvalue(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.