Class ser_permutation -- A Collection of Permutation Vectors for Seriation
Class ser_permutation -- A Collection of Permutation Vectors for Seriation
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.
ser_permutation(x,...)## S3 method for class 'ser_permutation'print(x,...)## S3 method for class 'ser_permutation'summary(object,...)## S3 method for class 'ser_permutation'c(..., recursive =FALSE)## S3 method for class 'ser_permutation'object[i,...]
Arguments
x, object: an object of class ser_permutation_vector or any object which can be converted into a object of class ser_permutation (e.g. an integer vector).
...: vectors for further dimensions.
recursive: ignored.
i: index of the dimension(s) to extract.
Returns
An object of class ser_permutation.
Examples
o <- ser_permutation(1:5,10:1)o
## length (number of dimensions)length(o)## get permutation vector for 2nd dimensionget_order(o,2)## reverse dimensionso[2:1]## combineo <- c(o, ser_permutation(1:15))o
## get an individual permutationo[[2]]## reverse the order of a permutationo[[2]]<- rev(o[[2]])get_order(o,2)
See Also
Other permutation: get_order(), permutation_vector2matrix(), permute(), ser_dist(), ser_permutation_vector()