perm.edge.weights: Perform edge weight permutations

Description Usage Arguments

View source: R/permutation_functions.R

Description

This function will permute a network by randomly switching weights between edges.

Usage

1
2
3
perm.edge.weights(data, measureFun, directed = FALSE, nperm = 1000,
  probs = 0.95, SRI = FALSE, effortFun = NULL, effortData = NULL,
  windowstart, windowend)

Arguments

data

Dataframe with relational data in the first two rows, and a time stamp in the third row. Note: time stamps should be in ymd or ymd_hms format. The lubridate package can be very helpful in organizing times.

measureFun

This is a function that takes as an input a igraph network and returns a single value.

directed

Whether to consider the network as directed or not (TRUE/FALSE).

nperm

Number of permutations to perform before extracting network measures.

probs

numeric vector of probabilities with values in [0,1].

SRI

Wether to use the simple ratio index (Default=FALSE).

effortFun

This is a function that takes as input the data within a window of time and returns the total sampling effort.

effortData

This is a dataframe containing the data used to calculate sampling effort.


tbonne/netTS documentation built on July 26, 2021, 2:27 a.m.