simple_sews {spatialwarnings}R Documentation

simple_sews objects

Description

This help page describes the structure of simple_sews_* objects, such as those defined by the classes simple_sews_single, simple_sews_list

Details

The spatialwarnings uses S3 objects (lists) internally to store indicator values, along with the necessary data to plot and display results. It is not recommended to extract data directly from these objects, as they are subject to change with different releases of the package. The preferred method is to use dedicated generic functions such as plot() or as.data.frame() to display or export the results. Nonetheless, we document the structure of these objects here for reference.

simple_sews objects are returned by all indicator functions that return numeric values. This includes for example generic_sews, flowlength_sews, compute_indicator but *not* patchdistr_sews or spectral_sews, which provide indicators that depend on non-numeric values (e.g. patch-size distribution type), or need to store more information than just a single numerical value (e.g. the spectrum of the input matrix).

simple_sews objects come in multiple variants: simple_sews_single is the result of an indicator function applied to a single matrix, and simple_sews_test_single is the result of indictest applied to a simple_sews_single object. Both these objects have list equivalents, simple_sews_list and simple_sews_test_list which are simply a collection of their 'single' equivalent. These 'list' objects are used to store the results of computations when working with multiple matrices.

A simple_sews_single object is a list with the following components

simple_sews_test_single have all of the above components, plus the following:

See Also

custom_indicator


[Package spatialwarnings version 3.0.3 Index]