Hello everyone, I have a dataset that looks like this:
I am trying to merge all the rows that have the same name within the column "Tree" and have all values in the other columns summarized. I have tried with:
dfx <- df %>%
summarize_all(...) (I've tried multiple things here)
(and some other solutions I found, but they didn't fit my case.)
but either got a dataframe that included JUST the Tree column or a very weird dataframe where everything was merged appropriately but values were shown as binary (how did that even happen???)
I'm sorry if the solution is actually an easy one, but I haven't found a solution where it wasnt based on multiple columns and I want to refrain from listing 335 columns in my code.
Thanks in advance