About 4,040,000 results
Open links in new tab
  1. How to use or/and in dplyr to subset a data.frame

    How to use or/and in dplyr to subset a data.frame Asked 11 years, 4 months ago Modified 5 years, 1 month ago Viewed 94k times

  2. dplyr - Count multiple columns and group by in R - Stack Overflow

    Dec 5, 2016 · The answers to my last question helped me understand the dplyr n(). But I still couldn't apply to the problem I am trying to solve. So, here I am posting the data and actual …

  3. r - Using plyr::mapvalues with dplyr - Stack Overflow

    By and large, any function provided by both dplyr and plyr works in a similar way, although dplyr functions tend to be faster and more general. Though note that you can call mapvalues using …

  4. Create new column with dplyr mutate and substring of existing …

    Create new column with dplyr mutate and substring of existing column Asked 8 years, 9 months ago Modified 4 years, 7 months ago Viewed 85k times

  5. Can dplyr package be used for conditional mutating?

    I think this should be in the simplest dplyr tutorials, it is very common to have the need for calculating stuff for subsets of the data, but still wanting to keep the data complete. @G. …

  6. Relative frequencies / proportions with dplyr - Stack Overflow

    Suppose I want to calculate the proportion of different values within each group. For example, using the mtcars data, how do I calculate the relative frequency of number of gears by am …

  7. How do I replace NA values with zeros in an R dataframe?

    The dplyr hybridized options are now around 30% faster than the Base R subset reassigns. On a 100M datapoint dataframe mutate_all(~replace(., is.na(.), 0)) runs a half a second faster than …

  8. r - Remove duplicated rows using dplyr - Stack Overflow

    Most of the time, the best solution is using distinct() from dplyr, as has already been suggested. However, here's another approach that uses the slice() function from dplyr.

  9. How to deal with nonstandard column names (white space, …

    Some alternatives to backticks, good as of dplyr 0.5.0, the current version as of this writing. If you're trying to programmatically select an argument as a column and you don't want to …

  10. How do I filter a range of numbers in R? - Stack Overflow

    10 Plenty of good dplyr solutions such as filtering in or hard-coding the upper and lower bounds already present in some of the answers: