The R Project SVN R

Rev

Rev 70299 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70299 Rev 76483
Line 1... Line 1...
1
% File src/library/stats/man/ecdf.Rd
1
% File src/library/stats/man/ecdf.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2016 R Core Team
3
% Copyright 1995-2019 R Core Team
4
% Copyright 2002-2016 The R Foundation
4
% Copyright 2002-2016 The R Foundation
5
% Distributed under GPL 2 or later
5
% Distributed under GPL 2 or later
6
 
6
 
7
\name{ecdf}
7
\name{ecdf}
8
\alias{ecdf}
8
\alias{ecdf}
Line 101... Line 101...
101
summary(Fn12)
101
summary(Fn12)
102
summary.stepfun(Fn12)
102
summary.stepfun(Fn12)
103
 
103
 
104
## Advanced: What's inside the function closure?
104
## Advanced: What's inside the function closure?
105
ls(environment(Fn12))
105
ls(environment(Fn12))
106
##[1] "f"  "method"  "n"  "x"  "y"  "yleft"  "yright"
106
## "f"     "method" "na.rm"  "nobs"   "x"     "y"    "yleft"  "yright"
107
utils::ls.str(environment(Fn12))
107
utils::ls.str(environment(Fn12))
108
stopifnot(all.equal(quantile(Fn12), quantile(y)))
108
stopifnot(all.equal(quantile(Fn12), quantile(y)))
109
 
109
 
110
###----------------- Plotting --------------------------
110
###----------------- Plotting --------------------------
111
require(graphics)
111
require(graphics)