Displaying 1 result from an estimated 1 matches for "sampleprior".
2006 Mar 05
3
Where to declare S4 classes?
...ly well for the purpose. I am now
wondering how to make them operate in a package. In clear when a package
is loaded (eg library(mypackage)) where should I put the class descriptions:
setClass("Prior",representation(Distrib="character",Params="list"))
setClass("SamplePrior",representation("Prior",Sample="list"))
so that they are created and then usable for functions after a simple
call to library(mypackage).
It is probably something trivial, but I could not find out something
clear on this (eg example) in the R-help-list, writing R-extens...