new_decimal: Internal constructor to create 'deb_decimal' type

Description Usage Value

View source: R/01.1-decimal-class.R

Description

Asserts that x is a double(), that unit is "l", "s", or "d", and that bases is an integer() of length 2. Creates the object through new_vctr().

Usage

1
new_decimal(x = double(), unit = c("l", "s", "d"), bases = c(20L, 12L))

Value

A vector of class deb_decimal.


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