Hi Rcpp Friends

I want to use dgev(x,shape=1,scale=1,location=0,log=FALSE) function of an R
package "FAdist" in the framework of Rcpp. How can I call that?

For example for the Poisson distribution which is basic function of R I
have written the following code.


#include <Rcpp.h>
using namespace Rcpp;

//[[Rcpp::export]]

NumericVector poiss(NumerixVector x, double lam, int give_log)
{
        return R::dpois(x, lam, give_log);
}


Thank you
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to