DataSHIELD implentation of dplyr::arrange.

ds.arrange(
  df.name = NULL,
  expr = NULL,
  .by_group = NULL,
  newobj = NULL,
  datasources = NULL
)

Arguments

df.name

Character specifying a serverside data frame or tibble.

expr

Variables, or functions of variables. Use desc() to sort a variable in descending order.

.by_group

If TRUE, will sort first by grouping variable. Applies to grouped data frames only.

newobj

Character specifying name for new server-side data frame.

datasources

DataSHIELD connections object.

Value

An object with the name specified by the newobj argument is written serverside.

Examples

if (FALSE) {
ds.arrange(
 "mtcars",
 expr = list(drat),
 newobj = "sorted_df"
 )
}