R/BAYESRETURN.R

setClass("BAYESRETURN", representation(

alpha="numeric",
beta="numeric",
var_alpha="numeric",
a_inc  = "numeric",
fst = "numeric",
mfst="numeric",
P="numeric"
))

setMethod("show", "BAYESRETURN",
 function(object){

out <- data.frame(Slots=c("alpha","beta","a_inc","fst"),Description=c("locus effect","population effect","alpha included","FST values"))
print(out)

})

setGeneric("getalpha", function(object) standardGeneric("getalpha"))
 setMethod("getalpha", "BAYESRETURN",
 function(object){
 return(object@alpha)
 })

Try the PopGenome package in your browser

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

PopGenome documentation built on Feb. 1, 2020, 1:07 a.m.