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

Coerce Total Eggs to a Data Frame

Description

Function to coerce the object displaying Total Eggs into a data frame.

Usage

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

Arguments

x

A lifertableTotEggs 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.lifertableTotEggs returns a data frame.

Examples

## Make the main object:
lft <- lifertable(Female, Age, Eggs, Sexrate,
                  ColumnGroups = Group,
                  data = Insects, TotalEggs = TRUE)


as.data.frame(lft$TOTAL.EGGS)


[Package Lifertable version 0.0.1 Index]