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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:52:37+00:00 2026-05-26T18:52:37+00:00

I have a dataset like this: x A B 1 x 2 2 y

  • 0

I have a dataset like this:

x
       A      B
1      x      2
2      y      4
3      z      4
4      x      4
5      x      4
6      x      3
......

I want to know if in this dataset are present a same number of “A” upper than some value(for example 3).

Probably i will need to group this value in a temporary table getting this:

  X    Y     z
  4    1     1

and after this i will call another method (that i don’t know) that gives me this result

X

because only the value X is present more than 3 times in my previous table.
Can R optimise this operation?

  • 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-26T18:52:37+00:00Added an answer on May 26, 2026 at 6:52 pm

    data<-data.frame(factor(c(“x”,”y”,”z”,”x”,”x”,”x”)),c(2,4,4,4,4,3))

    To get the count of each letter, do

    table(data[,1])

    and to get the name of the factors with > 3

    names(table(data[,1]))[table(data[,1]) > 3]

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

Sidebar

Related Questions

I have the dataset (pts) like this: x <- seq(-124.25,length=115,by=0.5) y <- seq(26.25,length=46,by=0.5) z
I have a SAS dataset that looks like this: var _12 _41 _17 12
The scenarios is like this: We have some SQL table. We are performing an
I have a dataset of environmental variables I would like to use for a
I have a collection with about 500000 dataset in it and I like to
I have a typed dataset in my project. I would like to populate a
i have a table with hierarchical structure. like this: (source: aspalliance.com ) and table
I know that there are a few questions like this on SOF, but I
I have a problem I would like some help at. I need to create
Like you Know the easier way to fill a dataset is with a dataAdapter

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.