x <- deb_lsd(l = c(5, 8, 12),
s = c(16, 6, 13),
d = c(6, 11, 0))
y <- deb_tetra(l = c(5, 8, 12),
s = c(16, 6, 13),
d = c(6, 11, 0),
f = c(3, 2, 3))
# All values are normalized with sum and cumsum
sum(x)
sum(y)
cumsum(x)
cumsum(y)
mean(x)
mean(y)
# Round family on deb_lsd affects the denarius unit
x2 <- deb_lsd(5, 12, 5.8365)
y2 <- deb_tetra(5, 12, 8, 4.125)
round(x2)
round(y2)
round(x2, digits = 2)
signif(x2, digits = 2)
ceiling(x2)
ceiling(y2)
floor(x2)
floor(y2)
trunc(x2)
trunc(y2)
# The returned values are normalized whether
# they are positive or negative
x3 <- deb_lsd(9, 19, 11.825)
x4 <- deb_lsd(-9, -19, -11.825)
round(x3)
round(x3, digits = 1)
ceiling(x3)
floor(x4)
trunc(x3)
trunc(x4)
Run the code above in your browser using DataLab