https://github.com/cran/Matrix
Raw File
Tip revision: 36d1fb08b12280417951b78018de0ec3325503aa authored by Doug and Martin on 05 February 2010, 00:00:00 UTC
version 0.999375-37
Tip revision: 36d1fb0
KNex.R
stopifnot(require(Matrix, save=FALSE)) # at least its classes

KNex <-
    local({
	load(system.file(file.path("external", "KNex_slots.rda"), package = "Matrix"))
	## -> 'L'
	r <- list(mm = new("dgCMatrix"), y = L[["y"]])
	for (n in c("Dim", "i","p","x"))
	    slot(r$mm, n) <- L[[n]]
	r
    })
back to top