if (FALSE) {
# Get all data matching query specification
my_tibble <- query_records(subdomain = "abc",
auth = keyring::key_get("qb_example"),
from = "bn9d8iesz",
select = c(3, 6:9),
where = "{8.EX.'6-month'}")
# Query data, group, then sort it
my_tibble <- query_records(subdomain = "bhi",
auth = keyring::key_get("qb_example"),
from = "bn9d8iesz",
select = c(3, 8:12),
sort_by = list(list(fieldId = 12, order = "ASC"),
list(fieldId = 3, order = "DESC")),
group_by = list(list(fieldId = 4, grouping = "equal-values"),
list(fieldId = 9, grouping = "equal-values")))
}
Run the code above in your browser using DataLab