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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:46:46+00:00 2026-06-11T11:46:46+00:00

I have a dataframe with ten columns: A B C 1 1 1 1

  • 0

I have a dataframe with ten columns:

A  B   C   1  1  1  1  1  1  1
B  M   J   2  1  2  2  2  2  2
J  K   Z   3  3  3  3  3  3  3.1
V  N   I   4  4  4  4  4  4  4

I want to exclude those rows that have the same value from 4 to 10 column. I found solution for comparing different rows but here I am talking about within 1 row. So output is

B  M   J   2  1  2  2  2  2  2
J  K   Z   3  3  3  3  3  3  3.1

because 1st and last row has same values in columns 4 to 10. I can do it by comparing each value 1 by 1 but my dataframe is very big (~100,000 rows).

  • 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-11T11:46:48+00:00Added an answer on June 11, 2026 at 11:46 am

    What about something like:

     ##Work out the rows to keep
     ##dd is your data frame
     rows = apply(dd[, 4:10], 1, function(i) length(unique(i)) > 1)
    

    then subset as normal

     dd[rows,]
    

    ~100K rows isn’t that much.

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

Sidebar

Related Questions

I have a dataframe with 6 columns and many rows that includes positions for
I have a dataframe (14.5K rows by 15 columns) containing billing data from 2001
I have a dataframe with three columns: Id , Date and Value and want
I have a dataframe with some numeric columns. Some row has a 0 value
I have a dataframe with a column of integers that I would like to
I have a dataframe in R that I loaded from a CSV file. One
I'd like to melt the dataframe so that in one column I have dates
I have a dataframe that I want to reshape; my reshape code: matchedlong <-
I have a dataframe. first column contains my the predictive score (range from 0
I have a dataframe with columns labeled A,B & C. I want to add

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.