R/randomsign.R

Defines functions .add .random_sign

## assign random sign to correlations

.random_sign<- function(x){
  x * sample(c(-1,1), 1)
}

.add <- function(x) Reduce("+", x)
princyparsana/netsimulatR documentation built on June 16, 2020, 3:47 a.m.