Learn R Programming

Lifertable (version 1.0.1)

as.data.frame.lifertableLFT: Coerce Life Table to a Data Frame

Description

Function to coerce the object displaying Life Table into a data frame.

Usage

# S3 method for lifertableLFT
as.data.frame(x, row.names = NULL, ...)

Value

as.data.frame.lifertableLFT returns a data frame.

Arguments

x

A lifertableLFT object

row.names

NULL or a character vector giving the row names for the data frame. Missing values are not allowed.

...

additional arguments to be passed to or from methods.

Examples

Run this code
## Make the main object:
lft <- lifertable(ColumnFemale = Female,
                  ColumnAge = Age,
                  ColumnEggs = Eggs,
                  SexRate = Sexrate,
                  ColumnGroups = Group,
                  data = Insects)


as.data.frame(lft$LIFERTABLE)

Run the code above in your browser using DataLab