make_encounters | R Documentation |
make_encounters
is a convenience function to make an encounter matrix y suitable for
use in eFrameREST
. It converts long data to the wide format with one row per site.
make_encounters(sites, events)
sites |
A |
events |
A |
a matrix
with the number of encounters for each camera with dimensions
M x J where M is the number of sites and J is the maximum number of days operation. Cameras
operating for less than J days are assigned NA for those days.
sites<- HogDeer$sites
encounters<- HogDeer$encounters
y<- make_encounters(sites, encounters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.