I have a data frame with 2 columns: person and points. In my actual dataset there are more than 1000 persons.
My goal: I need to find persons that have more than 126 points.
df1:
person      points
abc
abc        1
abc
abc        2
abc1    
abc1       1
abc1
I have used this code:
df1 <- read.csv("df1.csv")
  points_to_numeric <- as.numeric(df1$points)
  person_filtered <- df1 %>%
  group_by(person) %>%
  dplyr::filter(sum(points_to_numeric, na.rm = T)>126)%>%
  distinct(person) %>%
  pull()
person_filtered
When I enter this code, as a result I get 800 unique persons. But if I want to know how many persons have less than 126 points - I also get 800 unique persons. So it looks like that it does not work.
 
     
     
    