bm_mpermute: Extension of bigmemory::mpermute to allow decreasing...

Description Usage Arguments Value Examples

Description

Extension of bigmemory::mpermute to allow decreasing parameter to be a vector

Usage

1
2
bm_mpermute(x, order = NULL, cols = NULL, allow.duplicates = FALSE,
  decreasing = FALSE, ...)

Arguments

x

bigmemmory::big.matrix

order

Ordering vector

cols

Columns to sort on

allow.duplicates

If TRUE allows row to be duplicated in result (order will be non-permutation of 1:nrow(x))

decreasing

Sort in decreasing order: single value or equal to length of x for tie breaking

...

Additional parameters to pass to bm_morder

Value

No return value: permutes in place

Examples

1
2
3
4
5
bm <- bigmemory::big.matrix (9, 3)
bm[] <- sample(1:3, 27, replace=TRUE)
bm[]
bm_mpermute (bm, cols=1, decreasing=c(TRUE, FALSE))
bm_mpermute (bm, cols=1, decreasing=c(FALSE, TRUE))

jeblundell/multiplyr documentation built on May 19, 2019, 12:39 a.m.