Learn R Programming

HistDat (version 0.2.0)

as.ecdf: 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

Run this code
# NOT RUN {
cdf <- as.ecdf(1:4)
cdf(2) # returns 0.5
# }

Run the code above in your browser using DataLab