20130821: check what a funcion is in R