web_matrix_to_df | R Documentation |
Transform a web matrix to an expanded data frame which is needed as input for the bootstrap functions. Each row (interaction) is repeated as many times as it was observed. This is important for the sampling procedure. Rows are shuffled.
web_matrix_to_df(web, seed = 42)
web |
A web matrix, e.g. |
seed |
Passed to |
Returns an expanded data frame needed as input for the bootstrap functions. Rows are shuffled.
library(bootstrapnet)
library(bipartite)
data(Safariland)
Safariland_df <- web_matrix_to_df(Safariland)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.