unmarkedFrame-class | R Documentation |
Methods for manipulating, summarizing and viewing unmarkedFrames
Objects can be created by calls to the constructor function
unmarkedFrame
. These objects are passed to the data
argument of the fitting functions.
y
:Object of class "matrix"
obsCovs
:Object of class "optionalDataFrame"
siteCovs
:Object of class "optionalDataFrame"
mapInfo
:Object of class "optionalMapInfo"
obsToY
:Object of class "optionalMatrix"
signature(x = "unmarkedFrame", i = "numeric", j =
"missing", drop = "missing")
: ...
signature(x = "unmarkedFrame", i = "numeric", j =
"numeric", drop = "missing")
: ...
signature(x = "unmarkedFrame", i = "missing", j =
"numeric", drop = "missing")
: ...
signature(object = "unmarkedFrame")
: extract
coordinates
signature(object = "unmarkedFrame")
: extract y
matrix
signature(object = "unmarkedFrame")
: extract M
signature(object = "unmarkedFrame")
: extract
ncol(y)
signature(object = "unmarkedFrame")
: extract
observation-level covariates
signature(object = "unmarkedFrame")
: add or
modify observation-level covariates
signature(object = "unmarkedFrame")
: extract
number of observations
signature(object = "unmarkedFrame")
:
signature(object = "unmarkedFrame")
: ...
signature(x = "unmarkedFrame", y = "missing")
:
visualize response variable.
Takes additional argument panels
which specifies how many
panels data should be split over.
signature(object = "unmarkedFrame")
: extract
projection information
signature(object = "unmarkedFrame")
: view data as
data.frame
signature(object = "unmarkedFrame")
: extract
site-level covariates
signature(object = "unmarkedFrame")
: add or
modify site-level covariates
signature(object = "unmarkedFrame")
: summarize
data
signature(object = "unmarkedFrameOccuCOP")
: extract L
This is a superclass with child classes for each fitting function.
unmarkedFrame
, unmarkedFit
,
unmarked-package
# List all the child classes of unmarkedFrame
showClass("unmarkedFrame")
# Organize data for pcount()
data(mallard)
mallardUMF <- unmarkedFramePCount(mallard.y, siteCovs = mallard.site,
obsCovs = mallard.obs)
# Vizualize it
plot(mallardUMF)
mallardUMF
# Summarize it
summary(mallardUMF)
str(mallardUMF)
numSites(mallardUMF)
numY(mallardUMF)
obsNum(mallardUMF)
# Extract components of data
getY(mallardUMF)
obsCovs(mallardUMF)
obsCovs(mallardUMF, matrices = TRUE)
siteCovs(mallardUMF)
mallardUMF[1:5,] # First 5 rows in wide format
mallardUMF[,1:2] # First 2 observations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.