Thanks so much for your reply. I'm so new to this that the way you wrote your code and the way I wrote mine are different and the language is still foreign. When I use your way, I end up with one column that contains all of my column names in a vertical fashion. But I want it to return the same Wide version but only return columns with out "MGG"
It tried the following and received error message.
P_only_lab_data_HI <- HI_Wide2022 %>% !select(contains("MGG"))
P_only_lab_data_HI <- HI_Wide2022 %>% select(!contains("MGG"))
It seems like there are so many different ways to get to the same idea it gets confusing to separate everything in my brain.