Francis B. answered 06/27/25
UNC Pharmaceutical Sciences PhD Student, Previously NIH Fellow
Hi Dale. During my time at the National Institutes of Health I often used R and the tidyverse package to clean-up, restructure, and analyze data frames. Let me answer your last question first: I would definitely stick with tidyverse. It's an incredibly useful, albeit somewhat finicky tool.
As for your main question: when you transfer multiple columns to names_from, it creates a single column name from each of those values, typically separated by a delimiter. If you want each of the names_from columns to be individual columns rather than one column with compound names, I would recommend using the seperate_wider_position function after your pivot. Happy to connect with you if you still need guidance.
Francis