mat_to_net: Create a data.frame from a contingency table
Description
This function creates a two- or three-columns data.frame where
each row represents the interaction between two nodes (site and species for
example) and an optional third column indicating the weight of the
interaction (if weight = TRUE) from a contingency table (sites as
rows and species as columns for example).