mutator: Get or Set Parts of an Object

mutatorR Documentation

Get or Set Parts of an Object

Description

Getters and setters to extract or replace parts of an object.

Usage

get_hash(x)

get_names(x)

set_names(x) <- value

get_livetime(x)

get_realtime(x)

get_channels(x)

get_counts(x)

get_rates(x)

get_energy(x, ...)

set_energy(x) <- value

get_method(x)

set_method(x) <- value

get_residuals(x)

range_channels(x, ...)

range_energy(x, ...)

## S4 method for signature 'GammaSpectrum'
length(x)

## S4 method for signature 'GammaSpectrum'
get_hash(x)

## S4 method for signature 'GammaSpectrum'
get_names(x)

## S4 method for signature 'GammaSpectrum'
get_livetime(x)

## S4 method for signature 'GammaSpectrum'
get_realtime(x)

## S4 method for signature 'GammaSpectrum'
get_channels(x)

## S4 method for signature 'GammaSpectrum'
get_counts(x)

## S4 method for signature 'GammaSpectrum'
get_rates(x)

## S4 method for signature 'GammaSpectrum'
get_energy(x)

## S4 method for signature 'GammaSpectrum'
range_energy(x, na.rm = FALSE)

## S4 method for signature 'GammaSpectrum'
range_channels(x, na.rm = FALSE)

## S4 method for signature 'Baseline'
get_method(x)

## S4 method for signature 'GammaSpectra'
get_hash(x)

## S4 method for signature 'GammaSpectra'
get_names(x)

## S4 method for signature 'GammaSpectra'
get_livetime(x)

## S4 method for signature 'GammaSpectra'
get_realtime(x)

## S4 method for signature 'GammaSpectra'
get_channels(x)

## S4 method for signature 'GammaSpectra'
get_counts(x)

## S4 method for signature 'GammaSpectra'
get_rates(x)

## S4 method for signature 'GammaSpectra'
get_energy(x)

## S4 method for signature 'GammaSpectra'
range_energy(x, na.rm = FALSE)

## S4 method for signature 'GammaSpectra'
range_channels(x, na.rm = FALSE)

## S4 method for signature 'DoseRateModel'
get_residuals(x)

## S4 method for signature 'PeakPosition'
get_hash(x)

## S4 method for signature 'PeakPosition'
get_channels(x)

## S4 method for signature 'PeakPosition'
get_energy(x, expected = FALSE)

## S4 replacement method for signature 'GammaSpectrum'
set_names(x) <- value

## S4 replacement method for signature 'Baseline'
set_method(x) <- value

## S4 replacement method for signature 'GammaSpectra'
set_names(x) <- value

## S4 replacement method for signature 'PeakPosition,numeric'
set_energy(x) <- value

Arguments

x

An object from which to get or set element(s).

value

A possible value for the element(s) of x.

...

Currently not used.

na.rm

A logical scalar: should NA be omitted?

expected

A logical scalar: should the expected values be returned instead of observed values?

Value

An object of the same sort as x with the new values assigned.

Author(s)

N. Frerebeau

See Also

Other mutator: subset()


nfrerebeau/gamma documentation built on April 14, 2024, 7:26 a.m.