Get fields from R class