addDomainInfo: Add domain information to the return (sf) dataframe

View source: R/addDomainInfo.R

addDomainInfoR Documentation

Add domain information to the return (sf) dataframe

Description

Uses the esrimeta function to get information about the field domains in the returned dataframe and joins the domain information to the dataframe. This is especially important for the codedValue type domains that are essentially factors and you loose information without replacing the data.

Usage

addDomainInfo(df, url, token = "")

Arguments

df

The returned (sf) df from esri2sf/esri2df.

url

The url for the Map/Feature server layer/table.

token

string for authentication token (if needed).

Value

An sf dataframe


yonghah/esri2sf documentation built on June 2, 2022, 8:18 a.m.