is.ratetable | R Documentation |
The function verifies not only the class
attribute, but the
structure of the object.
is.ratetable(x, verbose=FALSE)
x |
the object to be verified. |
verbose |
if |
Rate tables are used by the pyears
and survexp
functions, and normally
contain death rates for some population, categorized by age, sex, or other
variables. They have a fairly rigid structure, and the verbose
option
can help in creating a new rate table.
returns TRUE
if x
is a ratetable, and FALSE
or a description if it is not.
pyears
, survexp
.
is.ratetable(survexp.us) # True
is.ratetable(lung) # False
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.