So I have a really, really big array. When I run a summary(var) on it, how can I see more than what’s listed, ie expanding out the (Other) bit? Here’s an example output:
" var "
"" "foo1 :5908364 "
"" "foot :1419481 "
"" "foop :1214379 "
"" "billy : 833016 "
"" "blah blah : 517618 "
"" "asdfasdf : 24668 "
"" "(Other) : 82474 "
I want to display more, if not all, of the non-listed items that are bundled under (Other). Is there an option to use on summary() to list more than that number of items?
I doubt that
varis an array, it looks more likely to be adata.framewith afactorcolumn.You are looking for the
maxsumargument ofsummary.factorand /orsummary.data.frame.summary(var, maxsum = 50)Or whatever your want to set it at.
You could also use
tableto return similar information (which is whatsummary.factoris doing under-the-hood)Assuming that
varis a factor column in a data.frame