assemble.demography {CTFS} | R Documentation |
This function reformats the list of lists output from the
demographic functions mortality
, recruitment
,
growth
and abundance.change
.
assemble.demography(output, type = "g", whichdbhcat = 1, datefirst = "1980-1-1")
output |
file containing the results from one of the demographic functions | ||||||||
type |
type of demographic function with values:
| ||||||||
whichdbhcat |
number indicating how many dbh categories to
include, cannot exceed the number of categories in
output | ||||||||
datefirst |
date of first enumeration at site, format: yyyy-mm-dd |
The results of the demographic functions (growth, mortality,
recruitment, abundance
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.demography
reformats the list output
into a dataframe so that is resembles a table.
The columns of the dataframe are always composed of the values
computed by the demographic function. The rows are the categories
provided by the first split variable used in the demographic
function. If a second split varible is used, then the argument
whichdbhcat
determines which category of the second spit
variable is put into the dataframe.
Returned Values
assemble.demography
returns a dataframe.
For growth
the following values are returned:
$rate
method
are provided for growth
$clim
$N0
$dbhmean
$meanyrs
$date0
$date1
For mortality
the following values are returned:
$rate
$upper
$lower
$N0
$S
$dbhmean
$meanyrs
$date0
$date1
For recruitment
the following values are returned:
$rate
$upper
$lower
$N1
$R
$meanyrs
$date0
$date1
For abundance.change
the following values are returned:
$rate
$prob
N0
== N1
$N0
$N1
$D
$R
$meanyrs
$date0
$date1
Rick Condit and Pamela Hall
## Not run: 1. Run the demographic function dbh.vct <- sep.dbh(tst.bci90.full,dbhclass=c(10,50,100,200,300,400,500)) growth.dbh <- growth(tst.bci90.full,tst.bcio95.full) growth.dbh.out 2. Reformat the output into a dataframe. Note there is only one row in this dataframe because no split variable was used in growth() assemble.demography(growth.out) 3. Run the demographic functions with two split variables, species names and dbh classes. Only the first list of the output is shown. ## End(Not run)