permute_restricted_by_row_cpp function

(C++) Restricted Permutation of Complete Rows Within Blocks

(C++) Restricted Permutation of Complete Rows Within Blocks

Divides a sequence in blocks of a given size and permutes rows within these blocks. Larger block sizes increasingly disrupt the data structure over time.

permute_restricted_by_row_cpp(x, block_size, seed = 1L)

Arguments

  • x: (required, numeric matrix). Numeric matrix to permute.
  • block_size: (optional, integer) block size in number of rows. Minimum value is 2, and maximum value is nrow(x).
  • seed: (optional, integer) random seed to use.

Returns

numeric matrix

See Also

Other Rcpp_permutation: permute_free_by_row_cpp(), permute_free_cpp(), permute_restricted_cpp()

  • Maintainer: Blas M. Benito
  • License: MIT + file LICENSE
  • Last published: 2025-02-01