as.SpatialPointsDataFrame: Produce a SpatialPointsDataFrame if data has a column of type...

Description Usage Arguments Value Examples

View source: R/formhub.R

Description

Produce a SpatialPointsDataFrame if data has a column of type 'gps' or 'geopoint'. Otherwise, return NA.

Usage

1

Arguments

the

formhub object which will be possibly co-erced to a SpatialPointsDataFrame object.

Value

A SpatialPointsDataFrame representation of this formhub Object

Examples

1
2
3
good_eats_data <- as.data.frame(formhubDownload("good_eats", "mberg"))
ge_spdf <- as.SpatialPointsDataFrame(good_eats_data)
class(ge_spdf) # "SpatialPointsDataFrame"

prabhasp/formhub.R documentation built on May 25, 2019, 11:25 a.m.