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 6469853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:02:31+00:00 2026-05-25T06:02:31+00:00

I need to find the highest bin for 90% of samples. I have a

  • 0

I need to find the “highest bin for 90% of samples”.

I have a table like this:

my_table <- data.frame(matrix(c(122,68,2,0,30,0,0,0,5,79,23,9000), byrow=TRUE, ncol=4))
names(my_table) <- c("0-10","11-20","21-30","31-5000")

Where the bin-headers indicate minutes (time).

For the first row, 90% of samples are at intervals lower or equal to “11-20”. I.e. 90% of samples have shorter time than 21 minutes.

For second row it is lower or equal to interval “0-10”.

And for third row it is lower or equal to interval “31-5000”.

I would like to add a column “90p-interval” where the above intervals are found automatically, resulting in the table like this:

my_table$Perc90 <-  c("11-20","0-10","31-5000")

My real table is thousands and thousands of rows long.

If someone can help I’m very grateful, and also thanks to everyone contributing to this fantastic site!

/Chris

  • 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-05-25T06:02:31+00:00Added an answer on May 25, 2026 at 6:02 am
    apply(my_table, 1, function(x) names(x)[
                   max( which( c(0,cumsum(x)) < 0.9*sum(x)))
                                          ])
    # [1] "11-20"   "0-10"    "31-5000"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following List<int> collection and I need to find the highest integer
So i need to find the tribe (table called pleme) with highest population.. to
I need to find a way to get the data with the highest versionNumber.
I'm experimenting with bash scripts, need help solving this: i have the following data
I need to find the highest number from 3 different numbers. The only thing
So, I need to find out the highest possible difference between any two random
I need to find the highest prime number in a given range. Here is
I have the following MS-Access SQL Table:- NAME, SUBJECT, SCORE ..and I need to
I have a postgres table with customer ID's, dates, and integers. I need to
I need to find the highest order 1 in some longs, ints, and shorts

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.