Assuming I have a table like this:
Name|ID|Path
Test|1|/home
Test|1|/service
Test|2|/about
Test|3|/about
Test|3|/service
Test|3|/contact
What I'm trying with this:
df <- df |>
group_by(ID) |>
mutate(pages = paste(Path,sep = ", ")) |>
ungroup()
Is to get to this:
Name|ID|pages
Test|1|/home, /service
Test|2|/about
Test|3|/about, /service, /contact
What am I doing wrong?