Skip to content

Instantly share code, notes, and snippets.

@agentcoops
Created September 3, 2010 22:47
Show Gist options
  • Save agentcoops/564679 to your computer and use it in GitHub Desktop.
Save agentcoops/564679 to your computer and use it in GitHub Desktop.
> lst
[,1] [,2] [,3]
[1,] "3" "2" "1"
> table(lst, lst)
Error in sort.list(y) :
'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?
> traceback()
4: stop("'x' must be atomic for 'sort.list'\nHave you called 'sort' on a list?")
3: sort.list(y)
2: factor(a, exclude = exclude)
1: table(lst, lst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment