Make Isomorphic...

Description

Make isomorphic a vector or a data frame object.

Usage

1
isom(x, uniq = FALSE)

Arguments

x

a vector or a data frame

uniq

(logical) whether or not the unique class should be returned

Details

This function serves to normalize otherwise arbitrary numbering of a vector or a data frame object data into a progressive ordinal recount of the data in the specified object. This is especially useful to specify more properly the corresponding clustering vector of a set of elements in a given system.

Value

The input data with isomorphic classes. In case that uniq is specified, then a list with the following items is given:

ism

the input data with isomorphic classes

uniq

the unique isomorphic classes

Author(s)

Antonio Rivero Ostoic

See Also

cngr, reduc

Examples

1
2
3
4
5
## Create a data frame (from 'Vectors')
df <- data.frame(x=1:3, y=5:7)

## Make isomorphic the observations
isom(df)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.