79801972

Date: 2025-10-27 15:19:42
Score: 0.5
Natty:
Report link

Here is a quick solution that you could optimize further:

pairs <- Map(\(x,y) rbind(combn(gsub(" ", "", strsplit(x, ";")[[1]]), 2), y), df$authors, df$type)

The list pairs can be converted back to a data.frame:

library(dplyr)
as.data.frame(t(do.call(cbind, pairs))) |>
  count(V1, V2, y)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Glory2Ukraine