Learn R Programming

mizer (version 3.2.0)

print: Print mizer objects

Description

Mizer supplies print() methods for the array-like objects returned by many rate and summary functions. These methods print a compact preview of the underlying matrix, array or vector: a header reporting the value name, dimensions and units, followed by the actual values, truncated to fit the console when the array is large. Species are truncated to a leading subset, sizes to an evenly log-spaced sample spanning the full size range (because size grids are uniform in log-space, this shows small, medium and large individuals rather than just the smallest), and time series to a representative sample of time steps that always includes the first and last. A trailing note reports how much was omitted. A three-dimensional ArrayTimeBySpeciesBySize() object is previewed via its final time slice, matching the default behaviour of plot() for that class.

Usage

# S3 method for ArraySpeciesBySize
print(x, ...)
# S3 method for ArrayTimeBySpecies
print(x, ...)
# S3 method for ArrayTimeBySpeciesBySize
print(x, ...)
# S3 method for summary.ArraySpeciesBySize
print(x, ...)
# S3 method for summary.ArrayTimeBySpecies
print(x, ...)
# S3 method for summary.ArrayTimeBySpeciesBySize
print(x, ...)

Value

The printed object, invisibly.

Arguments

x

The object to print.

...

Further arguments. They are currently ignored by the mizer methods.

Details

For full numeric access, use the object itself as an ordinary matrix, array or vector, or convert it to a long data frame with as.data.frame().

See Also

summary(), as.data.frame(), plot(), ArraySpeciesBySize(), ArrayTimeBySpecies(), ArrayTimeBySpeciesBySize()

Examples

Run this code
# \donttest{
enc <- getEncounter(NS_params)
print(enc)

biomass <- getBiomass(NS_sim)
print(biomass)
# }

Run the code above in your browser using DataLab