Learn R Programming

unmarked (version 1.5.1)

[-methods: Methods for bracket extraction [ in Package `unmarked'

Description

Methods for bracket extraction [ in Package `unmarked'

Usage

# S4 method for unmarkedEstimateList,ANY,ANY,ANY
[(x, i, j, drop)
# S4 method for unmarkedFit,ANY,ANY,ANY
[(x, i, j, drop)
# S4 method for unmarkedFrame,numericOrLogical,numericOrLogical,missing
[(x, i, j)

Arguments

x

Object of appropriate S4 class

i

Site numbers or a vector of TRUE/FALSE

j

Observation numbers (occasions or primary periods) or a vector of TRUE/FALSE

drop

Not currently used

Methods

x = "unmarkedEstimateList", i = "ANY", j = "ANY", drop = "ANY"

Extract a unmarkedEstimate object from an unmarkedEstimateList by name (either 'det' or 'state')

x = "unmarkedFit", i = "ANY", j = "ANY", drop = "ANY"

Extract a unmarkedEstimate object from an unmarkedFit by name (either 'det' or 'state')

x = "unmarkedFrame", i = "numericOrLogical", j = "numericOrLogical", drop = "missing"

Extract sites and/or observations from an unmarkedFrame

Examples

Run this code

data(mallard)
mallardUMF <- unmarkedFramePCount(mallard.y, siteCovs = mallard.site,
	obsCovs = mallard.obs)
summary(mallardUMF)

mallardUMF[1:5,]
mallardUMF[,1:2]
mallardUMF[1:5, 1:2]

Run the code above in your browser using DataLab