I have a dataframe in the following format:
id | name | logs ---+--------------------+-----------------------
Just to show another option
library(data.table) setDT(df)[, .(logs = unlist(logs)), by = .(id, name)]