[R] basic question about S4 and methods not found

2011-03-14 Thread Gabriel.Cardi
Hi guys I have a basic question about S4 stuff Here is how I do it: setGenericVerif <- function(x,y){if(!isGeneric(x)){setGeneric(x,y)}else{}} # from the genolini intro to S4 # here is the class setClass("RiskBuckets", representation( ... xxx ... ) ) # here

[R] Package distr and define your own distribution

2011-02-11 Thread Gabriel.Cardi
Hi all I am using the Package "distr" (and related) Do you know if it is possible to define your own distribution (object) GIVEN that you have an analytical form of the probability density function (pdf) ? I would then like to use the standard feature of the "distr" and related packages. Bes