I have a data frame. In that data frame I have two categorical variables. If I consider the cross product of those 2, then I have one row per element in my data frame.
The table shown below is a table of frequencies. Instead of showing the number of occurrences I would like to show the column test. Any ideas on how to do this? I have been trying to figure it out but I am not finding a way.

If I understand your problem correctly, it seems like you want to pivot the data from long form to wide form. You can do this pretty easily with dplyr and the
pivot_widerfunction:First we'll make some sample data (in the future, instead of including your data as an image, use the
dputfunction to output it in format we can copy and paste to reproduce the problem):Then we just pivot it to wide form, using
data_setto be the new column names andtestsas the value of those cells. We need to dropbest_threads, either in the pivot_wider function, or beforehand: