Return data table from px object
get_data_table(x, value, labels, sort)A px object
Optional. A data frame. If missing, the current DATA is returned. If NULL, all data rows are removed.
Optional. Logic or character vector. If TRUE, the data table is returned with VALUES instead of CODES. By default the VALUES of the main language are returned, use a character language code to return VALUES for a specific language.
Optional. If TRUE, the data table is returned in the sort order
defined by px_order(). If FALSE, the data table is returned as is.