as.data.frame.lifertableLFT {Lifertable}R Documentation

Coerce Life Table to a Data Frame

Description

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

Usage

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

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.

Value

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

Examples

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


as.data.frame(lft$LIFERTABLE)


[Package Lifertable version 0.1.0 Index]