R/DataGeNET_Psy-ndisease.R

#' @describeIn ndisease Get number of diseases
#' @return The number of unique diseases
setMethod( "ndisease",
    signature = "DataGeNET.Psy",
    definition = function( object ) {
        return( length( unique( object@qresult$c2.Disease_code ) ) )
    }
)

Try the psygenet2r package in your browser

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

psygenet2r documentation built on Jan. 31, 2021, 2 a.m.