View source: R/create.count.data.R
create.count.data | R Documentation |
This function creates a new data set where dis.data
is aggregated for
each visit to a segment (segment.id
). The sum of the estimated number
of individuals for each segment from dis.data$NHAT
is given in the
column NHAT
in the new data.
Only columns from the segment or higher layers should be carried over into
count.data
from dis.data
. Use argument column.numbers
to
identify these.
create.count.data(dis.data, column.numbers = NULL)
dis.data |
Data frame containing distance data (one row for each detection). Expects a column |
column.numbers |
Optional argument: vector of integers indicating which columns other than |
This function returns count data that is suited for second stage count modelling of distance sampling
data. The data includes the columns NHAT
and area
which are the response and
the offset required by functions concerned with second stage modelling from this package.
data(dis.data.re)
dis.data.re$survey.id<-paste(dis.data.re$season,dis.data.re$impact,sep="")
result<-ddf(dsmodel=~mcds(key="hn", formula=~1), data=dis.data.re, method="ds",
meta.data=list(width=250))
dis.data.re<-create.NHAT(dis.data.re,result)
count.data<-create.count.data(dis.data.re)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.