as.function.density: Density to function

Description Usage Arguments Value

View source: R/density.R

Description

Coercion function for kernel density object into R functions

Usage

1
2
## S3 method for class 'density'
as.function(x, ...)

Arguments

x

A kernel density object as produced by density

...

ignored

Value

An R function of one argument providing the KDE at any specific set of values


BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.