
Use dynamic name for new column/variable in `dplyr`
I want to use dplyr::mutate () to create multiple new columns in a data frame. The column names and their contents should be dynamically generated. Example data from iris: library (dplyr) iris <-
r - data.table vs dplyr: can one do something well the other can't or ...
Jan 29, 2014 · dplyr can possibly do things data.table will not or might not do as well. Based on the design of working in-memory, data.table could have a much more difficult time extending itself into …
r - dplyr filter () with SQL-like %wildcard% - Stack Overflow
I'm trying to use the SQL-equivalent wildcard filter on a particular input string to dplyr::filter, using the %like% operator from the data.table package. What am I doing wrong?
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, 7 months ago Modified 5 years, 4 months ago Viewed 95k times
dplyr: order columns alphabetically in R - Stack Overflow
dplyr: order columns alphabetically in R Asked 10 years, 9 months ago Modified 11 months ago Viewed 115k times
r - Count number of rows by group using dplyr - Stack Overflow
I am using the mtcars dataset. I want to find the number of records for a particular combination of data. Something very similar to the count(*) group by clause in SQL. ddply() from plyr is working...
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 (automatic/m...
Differences between %.% (dplyr) and %>% (magrittr) - Stack Overflow
May 18, 2014 · The dplyr package introduced the %.% operator to pass the left hand side as an argument of the function on the right hand side, similar to a *NIX pipe. The magrittr package is a …
r - Use variable names in functions of dplyr - Stack Overflow
For dplyr versions [0.3 - 0.7) (? - June 2017) (For more recent dplyr versions, please see other answers to this question) As of dplyr 0.3 every dplyr function using non standard evaluation (NSE, see release …
How to transpose a data frame in R using dplyr? - Stack Overflow
Dec 23, 2020 · How to transpose a data frame in R using dplyr? Asked 5 years ago Modified 5 years ago Viewed 19k times