
Helper function to assure validity of resources argument
Source:R/plotSpectra.R
valid_resources_arg.RdIf the resources argument contains invalid resources, then these are ignored but a warning is issued. If non of the resources is valid, then an error is produced.
Arguments
- object
A MizerSim or MizerParams object from which the resources should be selected.
- resources
The resources to be selected. Optional. By default all resources are selected. A vector of resource names, or a numeric vector with the resource indices, or a logical vector indicating for each resource whether it is to be selected (TRUE) or not.
- return.logical
Whether the return value should be a logical vector. Default FALSE.