| radix {demlife} | R Documentation |
Extract or change the 'radix' of an object of class
LifeTable. The radix of a life table is the value for
l0, the first entry in the lx column. As well as affecting
lx, changing the radix affects dx, Lx, and Tx.
radix(object) radix(object) <- value ## S4 method for signature 'LifeTable' radix(object) ## S4 replacement method for signature 'LifeTable' radix(object) <- value
object |
An object of class |
value |
A positive number. |
radix must be a positive number, and defaults to
100,000.
The extraction function returns a number and the replacement
function returns a LifeTable object with a
new radix.
Life tables are created using function LifeTable.
mx <- dembase::ValuesOne(c(0.2, 0.05, 0.1, 0.4),
labels = c("0", "1-4", "5-9", "10+"),
name = "age")
lt <- LifeTable(mx)
radix(lt)
radix(lt) <- 1000
lt