accessors-methods-sspm_fit: Accessing OR replacing 'sspm_fit' model elements

spm_unique_ID,sspm_fit-methodR Documentation

Accessing OR replacing sspm_fit model elements

Description

All methods described here allow to access the elements of contained in objects of class sspm_fit.

Usage

## S4 method for signature 'sspm_fit'
spm_unique_ID(sspm_object)

## S4 replacement method for signature 'sspm_fit'
spm_unique_ID(object) <- value

## S4 method for signature 'sspm_fit'
spm_time(sspm_object)

## S4 replacement method for signature 'sspm_fit'
spm_time(object) <- value

## S4 method for signature 'sspm_fit'
spm_formulas(sspm_object)

## S4 replacement method for signature 'sspm_fit'
spm_formulas(object) <- value

## S4 method for signature 'sspm_fit'
spm_smoothed_data(sspm_object)

## S4 replacement method for signature 'sspm_fit'
spm_smoothed_data(object) <- value

spm_get_fit(sspm_object)

## S4 method for signature 'sspm_fit'
spm_get_fit(sspm_object)

spm_get_fit(object) <- value

## S4 replacement method for signature 'sspm_fit'
spm_get_fit(object) <- value

## S4 method for signature 'sspm_fit'
spm_boundaries(sspm_object)

## S4 replacement method for signature 'sspm_fit'
spm_boundaries(object) <- value

## S4 method for signature 'sspm_fit'
spm_boundary(sspm_object)

## S4 replacement method for signature 'sspm_fit'
spm_boundary(object) <- value

Arguments

sspm_object

[sspm_fit] An object of class sspm_fit.

object

[sspm_fit] An object of class sspm_fit.

value

typically an array-like R object of a similar class as x.

Value

The object in the required slot.

Examples

data(borealis_simulated, package = "sspm")
biomass_dataset <- spm_as_dataset(data.frame(borealis_simulated), name = "borealis",
                                  density = "weight_per_km2",
                                  time = "year_f",
                                  coords = c('lon_dec','lat_dec'),
                                  uniqueID = "uniqueID")
spm_formulas(biomass_dataset)

pedersen-fisheries-lab/spaspm documentation built on Feb. 16, 2025, 7:39 p.m.