This function can used to access or assign the capture codes contained within the sefraData object.
Usage
capture_codes(object, ...)
# S4 method for class 'sefraData'
capture_codes(object)
capture_codes(object, ...) <- value
# S4 method for class 'sefraData,character'
capture_codes(object) <- value
# S4 method for class 'sefraData,data.frame'
capture_codes(object) <- value
# S4 method for class 'sefraData'
species_names(object)Note
Capture codes (function argument value) should match those listed in codes. If not, then the function will return an error.
Examples
# assign character vector
dat <- sefraData(c('DIW', 'DQS', 'TWD'))
#> species codes input: including all species-dependent capture codes
#> constructed 'sefraData' object
capture_codes(dat) <- c('BLZ')
capture_codes(dat)
#> 1 capture code:
#> (empty captures data frame)
#> code id_code resolution id_resolution
#> 1 BLZ 40 species 1
#> 2 BLZ 40 species 1
#> 3 BLZ 40 species 1
#> 4 BLZ 40 complex 2
#> 5 BLZ 40 complex 2
#> 6 BLZ 40 complex 2
#> 7 BLZ 40 genus 3
#> 8 BLZ 40 genus 3
#> 9 BLZ 40 family 4
#> 10 BLZ 40 class 5