R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 (2005-06-20), ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for a HTML browser interface to help. Type 'q()' to quit R. > ### *
> ### > attach(NULL, name = "CheckExEnv") > assign(".CheckExEnv", as.environment(2), pos = length(search())) # base > ## add some hooks to label plot pages for base and grid graphics > setHook("plot.new", ".newplot.hook") > setHook("persp", ".newplot.hook") > setHook("grid.newpage", ".gridplot.hook") > > assign("cleanEx", + function(env = .GlobalEnv) { + rm(list = ls(envir = env, all.names = TRUE), envir = env) + RNGkind("default", "default") + set.seed(1) + options(warn = 1) + delayedAssign("T", stop("T used instead of TRUE"), + assign.env = .CheckExEnv) + delayedAssign("F", stop("F used instead of FALSE"), + assign.env = .CheckExEnv) + sch <- search() + newitems <- sch[! sch %in% .oldSearch] + for(item in rev(newitems)) + eval(substitute(detach(item), list(item=item))) + missitems <- .oldSearch[! .oldSearch %in% sch] + if(length(missitems)) + warning("items ", paste(missitems, collapse=", "), + " have been removed from the search path") + }, + env = .CheckExEnv) > assign("..nameEx", "__{must remake R-ex/*.R}__", env = .CheckExEnv) # for now > assign("ptime", proc.time(), env = .CheckExEnv) > grDevices::postscript("faraway-Examples.ps") > assign("par.postscript", graphics::par(no.readonly = TRUE), env = .CheckExEnv) > options(contrasts = c(unordered = "contr.treatment", ordered = "contr.poly")) > options(warn = 1) > library('faraway') > > assign(".oldSearch", search(), env = .CheckExEnv) > assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) > cleanEx(); ..nameEx <- "Cpplot" > > ### * Cpplot > > flush(stderr()); flush(stdout()) > > ### Name: Cpplot > ### Title: Cp plot > ### Aliases: Cpplot > ### Keywords: regression > > ### ** Examples > > > > > cleanEx(); ..nameEx <- "aflatoxin" > > ### * aflatoxin > > flush(stderr()); flush(stdout()) > > ### Name: aflatoxin > ### Title: aflatoxin dosage and liver cancer in lab animals > ### Aliases: aflatoxin > ### Keywords: datasets > > ### ** Examples > > data(aflatoxin) > > > > cleanEx(); ..nameEx <- "halfnorm" > > ### * halfnorm > > flush(stderr()); flush(stdout()) > > ### Name: halfnorm > ### Title: Half Normal Plot > ### Aliases: halfnorm > > > ### ** Examples > > halfnorm(runif(10)) > > > > cleanEx(); ..nameEx <- "ilogit" > > ### * ilogit > > flush(stderr()); flush(stdout()) > > ### Name: ilogit > ### Title: Inverse Logit Transformation > ### Aliases: ilogit > ### Keywords: manip > > ### ** Examples > > ilogit(1:3) [1] 0.7310586 0.8807971 0.9525741 > #[1] 0.7310586 0.8807971 0.9525741 > > > > cleanEx(); ..nameEx <- "logit" > > ### * logit > > flush(stderr()); flush(stdout()) > > ### Name: logit > ### Title: Logit transformation > ### Aliases: logit > ### Keywords: manip > > ### ** Examples > logit(c(0.1,0.5,1.0,1.1)) [1] -2.197225 0.000000 NA NA > #[1] -2.197225 0.000000 NA NA > > > > cleanEx(); ..nameEx <- "maxadjr" > > ### * maxadjr > > flush(stderr()); flush(stdout()) > > ### Name: maxadjr > ### Title: Maximum Adjusted R-squared > ### Aliases: maxadjr > ### Keywords: regression > > ### ** Examples > > > > > cleanEx(); ..nameEx <- "prplot" > > ### * prplot > > flush(stderr()); flush(stdout()) > > ### Name: prplot > ### Title: Partial Residual Plot > ### Aliases: prplot > ### Keywords: regression > > ### ** Examples > > data(stackloss) > g <- lm(stack.loss ~ .,stackloss) > prplot(g,1) > > > > cleanEx(); ..nameEx <- "qqnorml" > > ### * qqnorml > > flush(stderr()); flush(stdout()) > > ### Name: qqnorml > ### Title: Labeled QQ plot > ### Aliases: qqnorml > > > ### ** Examples > > qqnorml(rnorm(16)) > > > > cleanEx(); ..nameEx <- "turtle" > > ### * turtle > > flush(stderr()); flush(stdout()) > > ### Name: turtle > ### Title: ~~ data name/kind ... ~~ > ### Aliases: turtle > ### Keywords: datasets > > ### ** Examples > > data(turtle) > > > > cleanEx(); ..nameEx <- "vif" > > ### * vif > > flush(stderr()); flush(stdout()) > > ### Name: vif > ### Title: vif > ### Aliases: vif vif.default vif.lm > > > ### ** Examples > > data(stackloss) > vif(stackloss[,-4]) Air.Flow Water.Temp Acid.Conc. 2.906484 2.572632 1.333587 > # Air.Flow Water.Temp Acid.Conc. > # 2.9065 2.5726 1.3336 > > > > ### *