R/getDF-methods.R

#' @describeIn getDF Extracts the degrees of freedom.
setMethod("getDF", "EL", function(object) {
  object@df
})

#' @describeIn getDF Extracts the vector of marginal degrees of freedom.
setMethod("getDF", "ELMT", function(object) {
  object@df
})

#' @describeIn getDF Extracts the (chi-square) degrees of freedom.
setMethod("getDF", "ELT", function(object) {
  object@df
})

#' @describeIn getDF Extracts the degrees of freedom.
setMethod("getDF", "SummaryEL", function(object) {
  object@df
})

#' @describeIn getDF Extracts the vector of marginal degrees of freedom.
setMethod("getDF", "SummaryELMT", function(object) {
  object@df
})

#' @describeIn getDF Extracts the degrees of freedom.
setMethod("getDF", "SummaryLM", function(object) {
  object@df
})

Try the melt package in your browser

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

melt documentation built on May 31, 2023, 7:12 p.m.