addSort: Add an ActivityInfo API style sort object

View source: R/records.R

addSortR Documentation

Add an ActivityInfo API style sort object

Description

This adds a single sorted column to an ActivityInfo remote records object. Usually one would use the dplyr::arrange verb instead.

Usage

addSort(x, sort)

Arguments

x

the remote records object fetched with getRecords.

sort

the sort object in the following format: list(list(dir = "ASC", field = "[Name]")) or list(list(dir = "DESC", field = "[Name]"))


bedatadriven/activityinfo-R documentation built on Dec. 21, 2024, 8:23 a.m.