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("ISwR-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('ISwR') Loading required package: survival Loading required package: splines > > assign(".oldSearch", search(), env = .CheckExEnv) > assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) > cleanEx(); ..nameEx <- "IgM" > > ### * IgM > > flush(stderr()); flush(stdout()) > > ### Name: IgM > ### Title: Immunoglobulin G > ### Aliases: IgM > ### Keywords: datasets > > ### ** Examples > > data(IgM) > stripchart(IgM,method="stack") > > > > cleanEx(); ..nameEx <- "ashina" > > ### * ashina > > flush(stderr()); flush(stdout()) > > ### Name: ashina > ### Title: Ashina's crossover trial > ### Aliases: ashina > ### Keywords: datasets > > ### ** Examples > > data(ashina) > plot(vas.active~vas.plac,pch=grp,data=ashina) > abline(0,1) > > > > cleanEx(); ..nameEx <- "bp.obese" > > ### * bp.obese > > flush(stderr()); flush(stdout()) > > ### Name: bp.obese > ### Title: Obesity and blood pressure > ### Aliases: bp.obese > ### Keywords: datasets > > ### ** Examples > > data(bp.obese) > plot(bp~obese,pch = ifelse(sex==1, "F", "M"), data = bp.obese) > > > > cleanEx(); ..nameEx <- "caesarean" > > ### * caesarean > > flush(stderr()); flush(stdout()) > > ### Name: caesarean > ### Title: Caesarean section and maternal shoe size > ### Aliases: caesarean caesar.shoe > ### Keywords: datasets > > ### ** Examples > > data(caesarean) > prop.trend.test(caesar.shoe["Yes",],margin.table(caesar.shoe,2)) Chi-squared Test for Trend in Proportions data: caesar.shoe["Yes", ] out of margin.table(caesar.shoe, 2) , using scores: 1 2 3 4 5 6 X-squared = 8.0237, df = 1, p-value = 0.004617 > > > > cleanEx(); ..nameEx <- "coking" > > ### * coking > > flush(stderr()); flush(stdout()) > > ### Name: coking > ### Title: Coking data > ### Aliases: coking > ### Keywords: datasets > > ### ** Examples > > data(coking) > attach(coking) > matplot(tapply(time,list(width,temp),mean)) > detach(coking) > > > > cleanEx(); ..nameEx <- "energy" > > ### * energy > > flush(stderr()); flush(stdout()) > > ### Name: energy > ### Title: Energy expenditure > ### Aliases: energy > ### Keywords: datasets > > ### ** Examples > > data(energy) > plot(expend~stature,data=energy) > > > > cleanEx(); ..nameEx <- "fake.trypsin" > > ### * fake.trypsin > > flush(stderr()); flush(stdout()) > > ### Name: fake.trypsin > ### Title: Trypsin by age groups > ### Aliases: fake.trypsin > ### Keywords: datasets > > ### ** Examples > > data(fake.trypsin) > plot(trypsin~grp, data=fake.trypsin) > > > > cleanEx(); ..nameEx <- "graft.vs.host" > > ### * graft.vs.host > > flush(stderr()); flush(stdout()) > > ### Name: graft.vs.host > ### Title: Graft versus host disease > ### Aliases: graft.vs.host > ### Keywords: datasets > > ### ** Examples > > data(graft.vs.host) > plot(jitter(gvhd,0.2)~index,data=graft.vs.host) > > > > cleanEx(); ..nameEx <- "heart.rate" > > ### * heart.rate > > flush(stderr()); flush(stdout()) > > ### Name: heart.rate > ### Title: Heart rates after enalaprilat > ### Aliases: heart.rate > ### Keywords: datasets > > ### ** Examples > > data(heart.rate) > evalq(interaction.plot(time,subj,hr), heart.rate) > > > > cleanEx(); ..nameEx <- "hellung" > > ### * hellung > > flush(stderr()); flush(stdout()) > > ### Name: hellung > ### Title: Growth of Tetrahymena cells > ### Aliases: hellung > ### Keywords: datasets > > ### ** Examples > > data(hellung) > plot(diameter~conc,pch=glucose,log="xy",data=hellung) > > > > cleanEx(); ..nameEx <- "intake" > > ### * intake > > flush(stderr()); flush(stdout()) > > ### Name: intake > ### Title: Energy intake > ### Aliases: intake > ### Keywords: datasets > > ### ** Examples > > data(intake) > plot(intake$pre, intake$post) > > > > cleanEx(); ..nameEx <- "juul" > > ### * juul > > flush(stderr()); flush(stdout()) > > ### Name: juul > ### Title: Juul's IGF data > ### Aliases: juul > ### Keywords: datasets > > ### ** Examples > > data(juul) > plot(igf1~age, data=juul) > > > > cleanEx(); ..nameEx <- "juul2" > > ### * juul2 > > flush(stderr()); flush(stdout()) > > ### Name: juul2 > ### Title: Juul's IGF data, extended version > ### Aliases: juul2 > ### Keywords: datasets > > ### ** Examples > > data(juul2) > plot(igf1~age, data=juul2) > > > > cleanEx(); ..nameEx <- "kfm" > > ### * kfm > > flush(stderr()); flush(stdout()) > > ### Name: kfm > ### Title: Breast-feeding data > ### Aliases: kfm > ### Keywords: datasets > > ### ** Examples > > data(kfm) > plot(dl.milk~mat.height,pch=c(1,2)[sex],data=kfm) > > > > cleanEx(); ..nameEx <- "lung" > > ### * lung > > flush(stderr()); flush(stdout()) > > ### Name: lung > ### Title: Methods for determining lung volume > ### Aliases: lung > ### Keywords: datasets > > ### ** Examples > > data(lung) > > > > cleanEx(); ..nameEx <- "malaria" > > ### * malaria > > flush(stderr()); flush(stdout()) > > ### Name: malaria > ### Title: Malaria antibody data > ### Aliases: malaria > ### Keywords: datasets > > ### ** Examples > > data(malaria) > summary(malaria) subject age ab mal Min. : 1.00 Min. : 3.00 Min. : 2.0 Min. :0.00 1st Qu.: 25.75 1st Qu.: 5.75 1st Qu.: 29.0 1st Qu.:0.00 Median : 50.50 Median : 9.00 Median : 111.0 Median :0.00 Mean : 50.50 Mean : 8.86 Mean : 311.5 Mean :0.27 3rd Qu.: 75.25 3rd Qu.:12.00 3rd Qu.: 373.8 3rd Qu.:1.00 Max. :100.00 Max. :15.00 Max. :2066.0 Max. :1.00 > > > > cleanEx(); ..nameEx <- "melanom" > > ### * melanom > > flush(stderr()); flush(stdout()) > > ### Name: melanom > ### Title: Survival after malignant melanoma > ### Aliases: melanom > ### Keywords: datasets > > ### ** Examples > > data(melanom) > require(survival) [1] TRUE > plot(survfit(Surv(days,status==1),data=melanom)) > > > > cleanEx(); ..nameEx <- "react" > > ### * react > > flush(stderr()); flush(stdout()) > > ### Name: react > ### Title: Tuberculin reactions > ### Aliases: react > ### Keywords: datasets > > ### ** Examples > > data(react) > hist(react) # not good because of discretization effects... > plot(density(react)) > > > > cleanEx(); ..nameEx <- "red.cell.folate" > > ### * red.cell.folate > > flush(stderr()); flush(stdout()) > > ### Name: red.cell.folate > ### Title: Red cell folate data > ### Aliases: red.cell.folate > ### Keywords: datasets > > ### ** Examples > > data(red.cell.folate) > plot(folate~ventilation,data=red.cell.folate) > > > > cleanEx(); ..nameEx <- "rmr" > > ### * rmr > > flush(stderr()); flush(stdout()) > > ### Name: rmr > ### Title: Resting metabolic rate > ### Aliases: rmr > ### Keywords: datasets > > ### ** Examples > > data(rmr) > plot(metabolic.rate~body.weight,data=rmr) > > > > cleanEx(); ..nameEx <- "secher" > > ### * secher > > flush(stderr()); flush(stdout()) > > ### Name: secher > ### Title: Birth weight and ultrasonography > ### Aliases: secher > ### Keywords: datasets > > ### ** Examples > > data(secher) > plot(bwt~ad, data=secher, log="xy") > > > > cleanEx(); ..nameEx <- "secretin" > > ### * secretin > > flush(stderr()); flush(stdout()) > > ### Name: secretin > ### Title: Secretin-induced blood glucose changes > ### Aliases: secretin > ### Keywords: datasets > > ### ** Examples > > data(secretin) > > > > cleanEx(); ..nameEx <- "tb.dilute" > > ### * tb.dilute > > flush(stderr()); flush(stdout()) > > ### Name: tb.dilute > ### Title: Tuberculin dilution assay > ### Aliases: tb.dilute > ### Keywords: datasets > > ### ** Examples > > data(tb.dilute) > > > > cleanEx(); ..nameEx <- "thuesen" > > ### * thuesen > > flush(stderr()); flush(stdout()) > > ### Name: thuesen > ### Title: Ventricular shortening velocity > ### Aliases: thuesen > ### Keywords: datasets > > ### ** Examples > > data(thuesen) > plot(short.velocity~blood.glucose, data=thuesen) > > > > cleanEx(); ..nameEx <- "tlc" > > ### * tlc > > flush(stderr()); flush(stdout()) > > ### Name: tlc > ### Title: Total lung capacity > ### Aliases: tlc > ### Keywords: datasets > > ### ** Examples > > data(tlc) > plot(tlc~height,data=tlc) > > > > cleanEx(); ..nameEx <- "vitcap" > > ### * vitcap > > flush(stderr()); flush(stdout()) > > ### Name: vitcap > ### Title: Vital capacity > ### Aliases: vitcap > ### Keywords: datasets > > ### ** Examples > > data(vitcap) > plot(vital.capacity~age, pch=group, data=vitcap) > > > > cleanEx(); ..nameEx <- "vitcap2" > > ### * vitcap2 > > flush(stderr()); flush(stdout()) > > ### Name: vitcap2 > ### Title: Vital capacity, full data set > ### Aliases: vitcap2 > ### Keywords: datasets > > ### ** Examples > > data(vitcap2) > plot(vital.capacity~age, pch=group, data=vitcap2) > > > > cleanEx(); ..nameEx <- "wright" > > ### * wright > > flush(stderr()); flush(stdout()) > > ### Name: wright > ### Title: Comparison of Wright peak-flow meters > ### Aliases: wright > ### Keywords: datasets > > ### ** Examples > > data(wright) > plot(wright) > abline(0,1) > > > > cleanEx(); ..nameEx <- "zelazo" > > ### * zelazo > > flush(stderr()); flush(stdout()) > > ### Name: zelazo > ### Title: Age at walking > ### Aliases: zelazo > ### Keywords: datasets > > ### ** Examples > > data(zelazo) > > > > ### *