disto {disto} | R Documentation |
Constructor for class 'disto'
Description
Create mapping to data sources storing distances(symmetric), dissimilarities(non-symmetric), similarities and so on
Provides a high level API to interface over backends storing distance, dissimilarity, similarity matrices with matrix style extraction, replacement and other utilities. Currently, in-memory dist object backend is supported.
Usage
disto(..., backend = "dist")
Arguments
... |
Arguments for a backend. See details |
backend |
(string) Specify a backend. Currently supported: 'dist' |
Details
This is a wrapper to create a 'disto' handle over different backends storing distances, dissimilarities, similarities etc with minimal data overhead like a database connection. The following named arguments are required to set-up the backend:
-
dist:
objectname: Object of the class 'dist' or the name of the object as a 'string'.
env: Environment where the object exists. When this is missing, its assumed to be parent environment.
Value
Object of class 'disto' which is a thin wrapper on a list
Author(s)
Srikanth KS
See Also
Useful links:
Examples
temp <- stats::dist(iris[,1:4])
dio <- disto(objectname = "temp")
dio
unclass(dio)