as.ecdf {HistDat}R Documentation

Converts an object to an empirical cumulative density function. This is a generic function.

Description

Converts an object to an empirical cumulative density function. This is a generic function.

Usage

as.ecdf(x)

Arguments

x

The object to coerce to a eCDF

Value

An instance of the "ecdf" class

See Also

ecdf()

Examples

cdf <- as.ecdf(1:4)
cdf(2) # returns 0.5

[Package HistDat version 0.2.0 Index]