R: Scalanie wierszy w tej samej tabeli danych, łączenie pewnych kolumn
Mam tabelę danych w R. Chcę scalić wiersze, które mają identycznecustomerID
, a następnie połącz elementy innych scalonych kolumn.
Chcę z tego wyjść:
title author customerID
1 title1 author1 1
2 title2 author2 2
3 title3 author3 1
do tego:
title author Group.1
1 title1, title3 author1, author3 1
2 title2 author2 2