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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:04:09+00:00 2026-06-10T14:04:09+00:00

I would like to apply a filter on my R data frame. Basically given

  • 0

I would like to apply a filter on my R data frame. Basically given a data frame I want to select rows which have value > N in all the colums.

N could be any float

             N_0m    N_10m    N_30m     N_1h       N_2h     N_6h
TCONS_00000001 26.23550 9.699170 6.766650 8.218550 13.2213000 9.292600
TCONS_00000002  5.63183 0.720824 1.043490 2.022020  3.5085200 0.000000
TCONS_00000003  1.79447 0.931127 1.485220 1.518330  0.0730952 0.000000
TCONS_00000004 17.07330 2.408020 1.263210 1.479090  1.7122500 1.121740

Thanks

  • 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-10T14:04:10+00:00Added an answer on June 10, 2026 at 2:04 pm

    This is simply

    df[apply(df > N, 1, all),,drop=FALSE]
    

    if your data frame is df. See ?apply for more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a filter that would like to apply to all controllers except for
I have some auto-instantiation code which I would like to apply to about 15
I would like to apply a custom filter on all audio played, is there
I have a dataframe and I would like to apply a function that takes
I have a HtmlHelper extension method that I would like to apply some logic
I have a jqgrid containing some data to filter. I'd like to define a
I would like to manually apply searching to my jqGrid via JavaScript. I have
I have a multi-module project and I would like to define a single filter
I would like to apply transition rules to elements with javascript, so far this
I would like to apply successive animations (say ScaleAnimation) to an ImageView showing a

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.