This is weird. I get this error
Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?
when I execute this code on a list
cc3 <- as.data.frame(table(cc2))
What could possibly be wrong?
this is a head of the list.
head(cc2)
V1
1: 174
2: 174
3: 211
4: 177106
5: 177106
6: 177106
Edit:
When I run, str(cc2)
I get this
Classes ‘data.table’ and 'data.frame': 149706 obs. of 1 variable:
$ V1:List of 149706
..$ : Named chr "174"
.. ..- attr(*, "names")= chr "V11"
..$ : Named chr "174"
.. ..- attr(*, "names")= chr "V7"
..$ : Named chr "211"
.. ..- attr(*, "names")= chr "V6"
.. [list output truncated]
- attr(*, ".internal.selfref")=<externalptr>