as.ratioOfQsprays {ratioOfQsprays} | R Documentation |
Coercion to a 'ratioOfQsprays' object
Description
Coercion to a 'ratioOfQsprays' object
Usage
## S4 method for signature 'character'
as.ratioOfQsprays(x)
## S4 method for signature 'ratioOfQsprays'
as.ratioOfQsprays(x)
## S4 method for signature 'qspray'
as.ratioOfQsprays(x)
## S4 method for signature 'numeric'
as.ratioOfQsprays(x)
## S4 method for signature 'bigz'
as.ratioOfQsprays(x)
## S4 method for signature 'bigq'
as.ratioOfQsprays(x)
Arguments
x |
a |
Value
This returns x
if x
already is a ratioOfQsprays
object, otherwise this returns the ratioOfQsprays
object whose
numerator is the coercion of x
to a qspray
object and whose
denominator is the unit qspray
object.
Examples
library(qspray)
as.ratioOfQsprays(2)
as.ratioOfQsprays("1/3")
( qspray <- 5*qlone(1) + qlone(2)^2 )
as.ratioOfQsprays(qspray)
# show options are inherited:
showQsprayOption(qspray, "x") <- "A"
as.ratioOfQsprays(qspray)
[Package ratioOfQsprays version 1.1.0 Index]