About 52 results
Open links in new tab
  1. r - dplyr filter logic using both 'and' and 'or' - Stack Overflow

    @MrFlick I want both conditions fulfilled in the bullet. Thanks, I edited original to note this. @Stephan Thanks, I did read Hadley's R4DS and he says "As well as & and |, R also has && …

  2. r - How to use a variable in dplyr::filter? - Stack Overflow

    Dec 11, 2015 · df %>% filter(b == !!b) which is syntactic sugar for. df %>% filter(b == UQ(b)) A high-level sense of this is that the UQ (un-quote) operation causes its contents to be evaluated …

  3. r - Filter data frame by character column name (in dplyr ... - Stack ...

    Nov 29, 2014 · The main thing about these two options is that we need to use filter_() instead of filter(). In fact, from what I've read, if you're programming with dplyr you should always use the …

  4. r - Filter by multiple conditions - Stack Overflow

    Jun 26, 2018 · You could use the built-in subset() function. It works like the dplyr's filter function mentioned in the other answers. It works like the dplyr's filter function mentioned in the other …

  5. r - using dplyr filter_at() function to select rows with conditions ...

    Feb 6, 2019 · I want to filter data frame according to a specific conditions in several columns. I use the following example o make it my statement more clear. I have a data frame: dat <- …

  6. Use filter in dplyr conditional on an if statement in R

    If I pass a value to the function's team_name parameter, then I would like to filter the dataframe using the 'team' column. If I don't pass a value to the team_name parameter, then it defaults to …

  7. if else with filter R - Stack Overflow

    Nov 5, 2021 · I would like to do a filter like so: If the sample id contains 3666 filter FAO >4, else filter FAO >20. So the output would be: sample_id FAO 1 SB024 100 2 3666-01 50 3 3666-02 …

  8. r - Filter multiple values on a string column in dplyr - Stack Overflow

    The result is the entire data frame with only the rows we wanted. select: the first argument is the data frame; the second argument is the names of the columns we want selected from it. We …

  9. r - Combining mutate and filter functions - Stack Overflow

    May 18, 2018 · Integral of a deterministic function w.r.t Brownian motion is a gaussian process What is this potted plant with 6 leaves to a stem (and how do I save it) Prove that it's always …

  10. r - Why doesn't dplyr filter() work within function (i.e. using ...

    Jul 23, 2017 · A function for filtering, grouping and mutating data with dplyr functions. Basic pipe sequence works great outside a function, that is where I use the true column names. Put it in a …