r class for statistics