The functionality is generic and may have use cases beyond the duplicates package. Integrate it into the polmineR-package, into the count() method, and add argument char to count().
The return value would then be an objecting inheriting from the textstat class, the count would be a data.table in slot stat. I do not see that this would be a drawback.
The functionality is generic and may have use cases beyond the duplicates package. Integrate it into the polmineR-package, into the
count()
method, and add argumentchar
tocount()
.The return value would then be an objecting inheriting from the
textstat
class, the count would be a data.table in slot stat. I do not see that this would be a drawback.