as.qspray {qspray}R Documentation

Coercion to a 'qspray' object

Description

Coercion to a 'qspray' object

Usage

## S4 method for signature 'character'
as.qspray(x)

## S4 method for signature 'qspray'
as.qspray(x)

## S4 method for signature 'numeric'
as.qspray(x)

## S4 method for signature 'bigz'
as.qspray(x)

## S4 method for signature 'bigq'
as.qspray(x)

Arguments

x

a qspray object or an object yielding a quoted integer or a quoted fraction after an application of as.character, e.g. a bigq number

Value

A qspray object.

Examples

as.qspray(2)
as.qspray("1/3")

[Package qspray version 3.1.0 Index]