R/allClasses.R

setClass("Gsri",
         representation(result="data.frame",
                        cdf="list",
                        parms="list"))

setValidity("Gsri",
            function(object) {
              res <- TRUE
              if(nrow(object@result) != length(object@cdf)) {
                res <- "cdf and result do not have same length"
                return(res)
              }
              return(res)
            })

Try the GSRI package in your browser

Any scripts or data that you put into this service are public.

GSRI documentation built on Nov. 8, 2020, 7:46 p.m.