spark_to_r_type function

Map spark to base R types