Deletes empty rows and columns from a matrix.
Gets rid of empty columns and rows in a matrix. Optionally counts removed rows and columns, and returns these values as attribute.
A matrix representing the interactions observed between higher trophic level species (columns) and lower trophic level species (rows). Usually this will be number of pollinators on each species of plants or number of parasitoids on each species of prey.
Logical. Shall be counted how many columns and rows were removed? Numbers are returned in attribute. Defaults to FALSE.
Helper function to remove empty (i.e. all-zero or all-NA) rows and columns, thereby concentrating the matrix. This function is also invoked for its side effect by
extinction to investigate the effect of removing a species from the network.
Returns matrix without empty rows or columns. Its attribute ‘out’ (if
count=TRUE) contains a named vector with the number of rows removed and the number of columns removed.
Carsten F. Dormann
second.extinct, which repeatedly call
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.