enve.df2dist: enve df2dist

Description Usage Arguments Value Author(s)

View source: R/df2dist.R

Description

Transform a dataframe (or coercible object, like a table) into a 'dist' object.

Usage

1
2
enve.df2dist(x, obj1.index = 1, obj2.index = 2, dist.index = 3, 
    default.d = NA, max.sim = 0)

Arguments

x

A table (or coercible object) with at least three columns: (1) ID of the object 1, (2) ID of the object 2, and (3) distance between the two objects.

obj1.index

Index of the column containing the ID of the object 1.

obj2.index

Index of the column containing the ID of the object 2.

dist.index

Index of the column containing the distance.

default.d

Default value (for missing values)

max.sim

If not-zero, assumes that the values are similarity (not distance) and this is the maximum similarity (corresponding to distance 0). Applies transformation: distance = (max.sim - values)/max.sim.

Value

Returns a 'dist' object.

Author(s)

Luis M. Rodriguez-R [aut, cre]


enveomics.R documentation built on May 20, 2017, 2:59 a.m.

Search within the enveomics.R package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.