| NISTcat | R Documentation |
The data.frame NISTcat supports the identification and download of CAs from the NIST library of covering arrays.
NISTcat
NISTcat is a matrix with columns t (strength), v (number of levels),
k (number of CA columns) and N (number of CA rows). Its rownames are the file
names in the NIST library of covering arrays.
The library is very large and has not been included into the package.
Function nistCA downloads the requested array as a zip file
into the temp directory (using function tempdir to locate
that directory), unzips it there and subsequently reads the CA into R.
The CAs in the NIST library of covering arrays were obtained via computer search. For many of them, there are meanwhile better alternatives.
The source is NIST (2008).
The creation of the object is documented by the R file NISTcat_create.R
in the extdata folder for this package, which can be located in the directory inst/extdata
of the GitHub repo; the many
raw arrays are not provided there, as they are available on the web.
NIST (2008)
## an impression of the content
head(NISTcat)
tail(NISTcat)
xtabs(~t+v, as.data.frame(NISTcat))
## the following is not tested because of run times
## in CRAN checks
fun <- function(t,k,v) eCAN(t,k,v)$CAN
fun <- Vectorize(fun)
diff <- NISTcat[,"N"]-fun(NISTcat[,"t"], NISTcat[,"k"], NISTcat[,"v"])
fivenum(diff)
## 0 13 37 161 50698
ratio <- NISTcat[,"N"]/fun(NISTcat[,"t"], NISTcat[,"k"], NISTcat[,"v"])
fivenum(ratio)
## 1 1.286 1.356 1.402 2.315
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.