John Verzani's Web Page

Data sets from Moore and McCabe, sixth edition

To use within R, one can download the entire set of data sets into a session as follows:

read in Moore and McCabe Data sets

readMM <- function() { x <- "http://bcs.whfreeman.com/ips6e/content/cat030/PCText.zip" setwd(tempdir()) download.file(x, "mm.zip") unzip("mm.zip", junkpaths=TRUE) l <- Sys.glob("*.txt") l <- gsub("\.txt, ", l) out <- sapply(l, function(i) { print(sprintf("reading %s", i)) try(read.table(paste(i, ".txt", sep=""), header=T), silent=TRUE) }) out <- out[!sapply(out, is, "try-error")] sapply(names(out), function(i) { assign(i, out[[i]], .GlobalEnv) }) invisible() }

readMM()

(Just copy and paste the above into an R session)