Learn R Programming

fmx (version 0.1.2)

approxdens: Empirical Density Function

Description

..

Usage

approxdens(x, ...)

Value

Function approxdens returns a function.

Arguments

x

numeric vector, observations

...

additional parameters of density.default

Details

approx inside density.default

another 'layer' of approxfun

Examples

Run this code
x = rnorm(1e3L)
f = approxdens(x)
f(x[1:3])

Run the code above in your browser using DataLab