normalize: Normalize pounds, shillings, and pence

Description Usage Arguments

Description

Normalize pounds, shillings, and pence

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
deb_normalize(x, ...)

## Default S3 method:
deb_normalize(x, ...)

## S3 method for class 'deb_lsd'
deb_normalize(x, ...)

## S3 method for class 'numeric'
deb_normalize(x, bases = c(20, 12), ...)

Arguments

x

Either an object of class deb_lsd or a numeric vector of length 3 representing the values to be normalized.

...

Arguments passed on to further methods.

bases

Used only if x is a numeric vector. A Numeric vector of length 2 used to specify the bases for the shillings or s and pence 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.


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