I am pretty new to R and am trying to combine a df with a factor.
My df is a dataframe of 300 by 2, and the factor is created from sampling the 300 rows and assigning