Rstats::Elements to class