Learn R Programming

inegiR (version 2.0.0)

denue_varios_stats: Returns statistics of coordinate

Description

Returns basic statistics of businesses, using DENUE, in the vecinity of coordinate.

Usage

denue_varios_stats(data, col_lat, col_long, token, metros = 250,
  keyword = "todos")

Arguments

data

data.frame with columns for latitud and longituds

col_lat

number of column in data with latitud column

col_long

number of column in data with longitud column

token

API token supplied by INEGI

metros

Distance in meters to search by coordinate

keyword

Keyword of businesses to include. Defaults to all ("todos")

Value

Data.frame

Examples

Run this code
# NOT RUN {
token<-"webservice_token"
df <- as.data.frame(latitud  = c(25.669194, 25.121194),
                  longitud = c(-100.30990, -99.81923))
stats <- denue_varios_stats(data     = df,
                          col_lat  = 1,
                          col_long = 2,
                          metros   = 500)
# }

Run the code above in your browser using DataLab