sp_to_df: Converts SpatialPolygonsDataFrame data for handling

Description Usage Arguments Details

Description

This function converts SpatialPolygonsDataFrame to data.frame for easier importing to OpenDataBio.

Usage

1
sp_to_df(data, name_arg = NA, adm_level_arg = NA)

Arguments

data

SpatialPolygonsDataFrame to be converted

name_arg

a vector of names to be used

adm_level_arg

a vector of adm_levels to be used

Details

This function requires that the suggested package 'rgeos' is installed. It fills some of the fields using the data supplied, and works best with http://gadm.org data. NOTE: this function is deprecated and will be replaced by a more in-depth vignette.


opendatabio/opendatabio-r documentation built on Sept. 27, 2021, 1:32 a.m.