deb_lsd: A class for pounds, shillings and pence values

Description Usage Arguments Examples

View source: R/01.2-lsd-class.R

Description

User-facing function to create deb_lsd vector.

Usage

1
deb_lsd(l = double(), s = double(), d = double(), bases = c(20, 12))

Arguments

l

Numeric vector representing the pounds unit.

s

Numeric vector representing the shillings unit.

d

Numeric vector representing the pence unit.

bases

Numeric vector of length 2 used to specify the bases for the solidus or s and denarius or d units. Default is c(20, 12), which conforms to the most widely used system of 1 pound = 20 shillings and 1 shilling = 12 pence.

Examples

1
2
3
4
deb_lsd(5, 3, 8)
deb_lsd(l = c(10, 8, 5),
        s = c(6, 13, 8),
        d = c(8, 4, 10))

jessesadler/debvctrs documentation built on June 14, 2021, 6:36 a.m.