shuffle_indices: Shuffle indices so that c(1, 2, 3, 4) maps to c(1, 3, 2, 4).

View source: R/shuffle.R

shuffle_indicesR Documentation

Shuffle indices so that c(1, 2, 3, 4) maps to c(1, 3, 2, 4).

Description

Given an even number n, produce the vector c(1, 3, 2, 4, ...) up to n.

Usage

shuffle_indices(n)

Arguments

n

(integer) The (even) number to shuffle.

Value

Shuffled indices.


deepgenomics/dgshuffle documentation built on June 1, 2022, 8:18 a.m.