Convert statistical analysis objects from R into tidy format