## The main object will be created using the Insects database:
lft <- lifertable(ColumnFemale = Female,
ColumnAge = Age,
ColumnEggs = Eggs,
SexRate = Sexrate,
ColumnGroups = Group,
data = Insects)
## Possible usage scenarios
## 1. Direct Usage of the "lft" Object:
plotSurvivalCurve(lft)
## 2. Assigning the component "LIFERTABLE" to an object:
lifeTable <- lft$LIFERTABLE
plotSurvivalCurve(lifeTable)
## 3. Direct usage of the component:
plotSurvivalCurve(lft$LIFERTABLE)
Run the code above in your browser using DataLab