key_Pair: Key_Pair

Description Usage Arguments Value Examples

View source: R/Key_Pair.R

Description

Takes a dataframe and converts it into a json key value pair currently only returns as strings #'

Usage

1

Arguments

df

is expected to be a dataframe extracted from an SF object

Value

should return a dataframe of key value pairs

Examples

1
2
3
4
5
library(sf)
nc <- st_read( system.file("shape/nc.shp", package="sf"))

attri <- boundary %>% dplyr::mutate_all(~ gsub('"', "'", .)) %>%
as.data.frame() %>%  dplyr::select(-geometry) %>%  key_Pair()

Woracle/esriformatr documentation built on Aug. 30, 2021, 2:25 p.m.