Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9098219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:18:35+00:00 2026-06-17T00:18:35+00:00

So I have a really, really big array. When I run a summary(var) on

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:18:36+00:00Added an answer on June 17, 2026 at 12:18 am

    I doubt that var is an array, it looks more likely to be a data.frame with a factor column.

    You are looking for the maxsum argument of summary.factor and /or summary.data.frame.

    summary(var, maxsum = 50)

    Or whatever your want to set it at.

    You could also use table to return similar information (which is what summary.factor is doing under-the-hood)

    Assuming that var is a factor column in a data.frame

    DF <- data.frame(var = rep(letters[1:10],1:10))
    
    
    summary(DF)
    
          var    
     j      :10  
     i      : 9  
     h      : 8  
     g      : 7  
     f      : 6  
     e      : 5  
     (Other):10  
    
    # over estimating the number required  
    summary(DF, maxsum = 20)
     var   
     a: 1  
     b: 2  
     c: 3  
     d: 4  
     e: 5  
     f: 6  
     g: 7  
     h: 8  
     i: 9  
     j:10  
    
     # using table
     table(DF$var)
    
    
     a  b  c  d  e  f  g  h  i  j 
     1  2  3  4  5  6  7  8  9 10 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this method and it's kind of really big so I can't include
i have a really big array of numbers with double precision...i tried to write
I have a really big array containing the following data: Array ( [2] =>
I have a quite complex, even though not really big, array, with many levels
I really have big problems with importing an extern C-Library to my existing C++-Project.
I have been a really big fan of stackoverflow(which led me to ask the
I have a website that just takes a really big form and saves the
I have really basic question. How can I get form id by input element
So I have an array that holds several numbers. As my script runs, more
I have a really big form with >1000 Elements. They are already nested inside

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.