powered by
Converts an object to an empirical cumulative density function. This is a generic function.
as.ecdf(x)
The object to coerce to a eCDF
An instance of the "ecdf" class
ecdf()
# NOT RUN { cdf <- as.ecdf(1:4) cdf(2) # returns 0.5 # }
Run the code above in your browser using DataLab