currency-methods: Get/set currency

Description Usage Arguments Value Examples

Description

Access the currency slot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
currency(object)

## S4 method for signature 'Balance'
currency(object)

## S4 method for signature 'Amount'
currency(object)

## S4 method for signature 'Trustline'
currency(object)

## S4 replacement method for signature 'Balance,Currency'
currency(object) <- value

## S4 replacement method for signature 'Amount,Currency'
currency(object) <- value

## S4 replacement method for signature 'Trustline,Currency'
currency(object) <- value

## S4 replacement method for signature 'Balance,character'
currency(object) <- value

## S4 replacement method for signature 'Amount,character'
currency(object) <- value

## S4 replacement method for signature 'Trustline,character'
currency(object) <- value

Arguments

object

Object with currency slot.

value

Object of class "Currency" or class "character".

Value

Object of class "Currency".

Examples

1
2
x <- Amount(1, "USD"); x
currency(x) <- "EUR"; x

hmalmedal/ripplerestr documentation built on May 17, 2019, 4:34 p.m.