distoon: distoon function

View source: R/utilities.R

distoonR Documentation

distoon function

Description

allows a function (particularly a self defined function) to be used in the quoted call of another function. an example of this is the heatmaply function which takes an argument 'distfun' which expects a quoted distance function such as "spearman" which cannot be substituted for a regular function name. instead use distoon to set the name and call distoon in it's place in the functions argument

Usage

distoon(x, meth)

Arguments

x

the data used

meth

the distance function (method) used

Examples

distoon_function()

clmacleod/highlandr documentation built on Feb. 18, 2025, 1:31 p.m.