Functions for R-Ecdat
