Description Usage Arguments Examples
Modified version of dplyr's arrange that uses string arguments
| 1 | 
| .data | the data frame (or similar object) | 
| ... | string version of arguments to original dplyr function | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run: 
  library(dplyrExtras)
  
  d = mtcars
  cols = c("mpg","cyl","hp:vs")
  s_select(d,cols)
  # also works and yields identical result...
  cols = c("mpg","cyl, hp:vs")
  s_select(d,cols)
  
  s_filter(d,"gear == 3","cyl == 8")
  s_arrange(d, "-mpg, gear, carb")
  gd = s_group_by(d,"cyl")
  s_summarise(gd, "mean(disp), max(disp)")
  s_mutate_if(d, "cyl==6, new.col=100")
  
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.