make.ssDF | R Documentation |
A function for creating a discretized state-space data object of class "ssDF". The object is a list of data frames, one dataframe for each session and each has columns "X", and "Y" which are pixel coordinates. The function generates session specific state-space objects which are created based on the session specific trap locations contained in the supplied 'scrFrame'. The buffer region and the resolution of the discrete surface are user specified. The function also allows random spatially referenced covariates to be added to the ssDF; either a continous, a categorical, "cont" and "fact", respectively, or both.
make.ssDF(scrFrame, buffer, res, cont.cov = F, fact.cov = F)
scrFrame |
An scrFrame which must be of class 'scrFrame'. |
buffer |
The required buffer distance. This should be in the units of the trap loaction coordinates. |
res |
The required resolution of the state space pixels. This should also be in the units of the trap loaction coordinates. |
cont.cov |
If TRUE, a random continuos covariate is returned with name "cont". |
fact.cov |
If TRUE, a random categorical covariate is returned with name "cont". |
TBA
A list of dataframes. One dataframe per session. Each dataframe has at minimum an "X" and "Y", column which are pixel coordinates. If selected, continous ("cont") and/or categorical ("fact") covariates are added. The list is of class "ssDF""
NA
Chris Sutherland
None
# simulate an scrFrame and create an associated ssDF object with no covariates:
ssDF <- make.ssDF(scrFrame=sf, buffer=2, res=0.25, cont.cov = F, fact.cov = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.