View source: R/summaryStatistics.R
validate_structureIndices | R Documentation |
This function checks whether the provided indices for islands and non-islands
are within the valid range of structures in the dataset. It also warns if
any indices are present in both index_islands
and index_nonislands
.
validate_structureIndices(data, index_islands, index_nonislands)
data |
A nested list |
index_islands |
An integer vector specifying indices that correspond to island structures. |
index_nonislands |
An integer vector specifying indices that correspond to non-island structures. |
The funct@exportion performs the following checks:
Ensures that all indices in index_islands
and index_nonislands
are within
the range of available structures.
Throws an error if any index is out of bounds.
Issues a warning if the same index appears in both index_islands
and index_nonislands
.
No return value. The function stops execution if invalid indices are detected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.