mnrva_single_rvector: Create a single random vector

Description Usage Arguments Details Value Examples

View source: R/mnrva_single_rvector.R

Description

Create a single random vector

Usage

1
mnrva_single_rvector(vec_length = 100)

Arguments

vec_length

integer must be even, sets the vector length

Details

This function returns a randomly permuted vector of 1s and -1s, such that the sum of the vector is equal to 0 (equal number of 1s and -1s). The 1s stand for feature present, and the -1s stand for feature absent.

Value

vector of random 1s and -1s

Examples

1
2
3

CrumpLab/minerva documentation built on Oct. 30, 2019, 5:50 a.m.