| trim {secr} | R Documentation |
Drop unwanted components from a list object, usually to save space.
## Default S3 method:
trim(object, drop, keep)
## S3 method for class 'secr':
trim(object, drop = c("mask", "design", "design0", "D"),
keep = NULL)
object |
a list object |
drop |
vector identifying components to be dropped |
keep |
vector identifying components to be kept |
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.
a list retaining selected components.
Murray Efford murray.efford@otago.ac.nz
data(secrdemo) names(secrdemo.0) names(trim(secrdemo.0)) object.size(secrdemo.0) object.size(trim(secrdemo.0))