fetchAllRecords: Fetch tabular data from AGOL

fetchAllRecordsR Documentation

Fetch tabular data from AGOL

Description

Retrieves tabular data from AGOL layers and tables, even when number of rows exceeds maximum record count.

Usage

fetchAllRecords(
  data_path,
  layer_number,
  token,
  geometry = FALSE,
  where = "1=1",
  outFields = "*"
)

Arguments

data_path

Feature service URL

layer_number

Layer number

token

Authentication token (optional)

geometry

Include spatial data columns? Works with points, not tested with other geometry types

where

Query clause specifying a subset of rows (optional; defaults to all rows). See AGOL REST API documentation.

outFields

String indicating which fields to return (optional; defaults to all fields). See AGOL REST API documentation.

Value

A tibble


nationalparkservice/mojn-ds-rpackage documentation built on Oct. 5, 2023, 6:21 p.m.