Why does this code print only numbers to the console? How can I get a list with names 1 through 13 and contents a,n ; b,o; et cetera?
aggregate(letters, by = data.frame(rep(1:13, 2)), head, simplify = F)
I'm using R 3.5.1.
I haven't found a duplicate yet. Here is what I have found so far on similar topics.
A similar but not identical question:
An apparently similar question that is actually about aggregating numbers: