Skip to contents

Add a labels state specification to a trelliscope display

Usage

set_default_sort(trdf, varnames, dirs = "asc", add = FALSE)

Arguments

trdf

A trelliscope data frame created with as_trelliscope_df() or a data frame which will be cast as such.

varnames

A vector of variable names to sort on.

dirs

A vector of directions to sort on ("asc" or "desc").

add

Should an existing sort specification be added to? If FALSE (default), the entire sort specification will be overridden.