trim: Drop Unwanted List Components

Description Usage Arguments Details Value Examples

Description

Drop unwanted components from a list object, usually to save space.

Usage

1
2
3
4
5
## Default S3 method:
trim(object, drop, keep)
## S3 method for class 'secr'
trim(object, drop = c("call", "mask", "designD", "designNE", 
    "design", "design0"), keep = NULL)

Arguments

object

a list object

drop

vector identifying components to be dropped

keep

vector identifying components to be kept

Details

drop may be a character vector of names or a numeric vector of indices. If both drop and keep are given then the action is conservative, dropping only components in drop and not in keep.

Be warned that some further operations on fitted secr objects become impossible once you have discarded the default components.

Value

a list retaining selected components.

Examples

1
2
3
4

secr documentation built on Oct. 18, 2021, 9:06 a.m.