Having classified items in a 'ZIDat' object, these function calculate various statistic descriptors of whole samples (abundances, biomasses, size spectra) and they collect them together in a 'ZIRes' object.
processSample(x, sample, keep = NULL,
detail = NULL, classes = "both", header = c("Abd", "Bio"),
cells = NULL, biomass = NULL, breaks = NULL)
processSampleAll(path = ".", zidbfiles, ZIClass = NULL, keep = NULL,
detail = NULL, classes = "both", header = c("Abd", "Bio"),
cells = NULL, biomass = NULL, breaks = NULL)# S3 method for ZIRes
print(x, …)
# S3 method for ZIRes
rbind(…, deparse.level = 1)
a 'ZIDat' object or similar data frame for processSample()
, or
a 'ZIRes' object for the other functions.
the sample 'Id' to use for selecting items of one sample only, in case the object contains data for several samples. It should not be the case for 'ZIDat' objects, and you do not have to provide this argument then.
a character vector with names of the levels to keep in the
analysis for the classes, or NULL
to keep them all.
a character vector with names of classes for which to calculate
separate statistics. The special levels [other]
and [total]
are also added. If NULL
, only the total for the sample is returned.
a character string with "Class"
to use the manual
classification for splitting particles in the sample, or "Predicted"
to use automatic classification, or "both"
(default) to use Class in
priority, but falling back to Predicted for particles whose Class is not
defined. One can also specify the name of another factor variable in x
.
a character vector with one or two strings to use as headers for, respectively, abundances and biomasses.
the path to an .rds file containing cells counting models, as used
by cellCompute()
.
a specification for biomass conversion. Can be NULL
(by
default) for turning off biomass calculation, or a numeric vector of three
values P1, P2 and P3 (same biomass for all classes with Bio = P1 * ECD^P3 + P2),
or a data frame with the name of classes in first column, P1, P2 and P3 in
columns 2 to 4. You must also provide one line with class "[other]"
that
is used for biomass claculation for classes not otherwise specified.
either NULL
(default) to turn off size spectra calculations
or a numeric vector for ECD classes breaks.
the path containing your ZIDB or ZID files to use for samples processing.
a list of ZIDB or ZID files to process in batch.
a 'ZIClass' object to use to classify particles during the process of your samples.
further arguments passed to the methods
integer controlling the way labels are constructed for non-matrix-like arguments (defined in the generic, but not used here).