# 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
Run the code above in your browser using DataLab