arrange by a single column
replyr_arrange(.data, colname, descending = FALSE)
.data | data object to work on |
---|---|
colname | character column name |
descending | logical if true sort descending (else sort ascending) |
d <- data.frame(Sepal_Length= c(5.8,5.7), Sepal_Width= c(4.0,4.4)) replyr_arrange(d, 'Sepal_Length', descending= TRUE)#> Sepal_Length Sepal_Width #> 1 5.8 4.0 #> 2 5.7 4.4