| permutation {seriation} | R Documentation |
The class ser_permutation is a collection of permutation vectors
(see class ser_permutation_vector), one for each dimension (mode)
of the data to be permuted.
## constructor ser_permutation(x, ...)
x |
an object of class |
... |
permutation vectors for further dimensions |
The basic functions print, "[", "[[" and c
are provided.
An object of class ser_permutation.
Michael Hahsler
ser_permutation_vector,
get_order,
get_permutation_matrix
o <- ser_permutation(1:5, 10:1) o ## length (number of dimensions) length(o) ## get permutation vector for 2nd dimension get_order(o, 2) ## reverse dimensions o[2:1] ## combine o <- c(o, ser_permutation(1:15)) o ## get an individual permutation o[[2]] ## reverse the order of a permutation o[[2]] <- rev(o[[2]]) get_order(o,2)