assemble.table.each {CTFS} | R Documentation

## Reformat the Output from Demographic Functions from List to Dataframe

### Description

This function reformats the list of lists output from the demographic functions `mortality`, `recruitment`, `growth` and `abundance.change`. This function is designed to provide separate tables for each dbh class and only returns only rate, confidence limits and Ns. It is currently only implemented for growth and mortality. An alternative function that has similar results is `assemble.demography`

### Usage

    assemble.table.each(output, type = "g", whichdbhcat = 1:2)

### Arguments

`output` | file containing the results from one of the demographic functions
`type` | type of demographic function with values:
“g” | output from `growth`
“a” | output from `abundance.change`
“m” | output from `mortality`
“r” | output from `recruitment`
`whichdbhcat` | number indicating how many dbh categories to include, cannot exceed the number of categories in `output`

### Details

The results of the demographic functions (`growth, mortality, recruitment, totalabundance` and related functions are lists. This is a very convenient format for further analysis but is not the easiest way to view the results of these functions. `assemble.table.each` reformats the list output into a dataframe so that is resembles a table.

This function only works for one category for computation of growth rates. It is most often used for DBH classes.

Returned Values

`assemble.table.each` returns a dataframe.

For `growth` the following values are returned:

`$rate`
  annual growth rate in mm per year or % per year, type determined by the argument `method` are provided for `growth`
`$clim`
  95% confidence limit based on a normal distribution
`$N0`
  number of trees used to compute growth rate

For `mortality` the following values are returned:

`$rate`
  mortality rate in %/year
`$upper`
  upper 95% confidence interval based on a normal distribution
`$lower`
  lower 95% confidence interval based on a normal distribution
`$N0`
  number of living trees at the first census
`$S`
  number of surviving trees at the second census
`$meanyrs`
  mean number of years between censuses

### Author(s)

Rick Condit and Pamela Hall

### See Also

`assemble.demography`

### Examples

    ## Not run:
    dbh0.vct=sep.dbh(tst.bci90.full)
    growth.dbh.out <- growth(tst.bci90.full,tst.bci95.full,split1=dbh0.vct)
    assemble.demography(growth.dbh.out)

    growth.sp.dbh.out <-
    growth(tst.bci90.full,tst.bci95.full,split1=tst.bci90.full$sp,split2=dbh0.vct)
    assemble.table.each(growth.sp.dbh.out,whichdbhcat=1:3)

    ## End(Not run)

[Package CTFS version 1.00 Index]