ZIRes: Various function to calculate results ('ZIRes' object)

Description Usage Arguments Author(s) See Also Examples

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 class 'ZIRes'
print(x, ...)
## S3 method for class 'ZIRes'
rbind(..., deparse.level = 1)

Arguments

x

a 'ZIDat' object or similar data frame for processSample(), or a 'ZIRes' object for the other functions.

sample

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.

keep

a character vector with names of the levels to keep in the analysis for the classes, or NULL to keep them all.

detail

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.

classes

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.

header

a character vector with one or two strings to use as headers for, respectively, abundances and biomasses.

cells

the path to an .rds file containing cells counting models, as used by cellCompute().

biomass

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.

breaks

either NULL (default) to turn off size spectra calculations or a numeric vector for ECD classes breaks.

path

the path containing your ZIDB or ZID files to use for samples processing.

zidbfiles

a list of ZIDB or ZID files to process in batch.

ZIClass

a 'ZIClass' object to use to classify particles during the process of your samples.

...

further arguments passed to the methods

deparse.level

integer controlling the way labels are constructed for non-matrix-like arguments (defined in the generic, but not used here).

Author(s)

Philippe Grosjean & Kevin Denis

See Also

ZIClass

Examples

1
##TODO...

zooimage documentation built on May 2, 2019, 3:43 p.m.

Related to ZIRes in zooimage...