inegi_denue_stats {inegiR}R Documentation

Returns statistics of coordinate

Description

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

Usage

inegi_denue_stats(latitud_vector, longitud_vector, token, meters = 250,
  keyword = "todos")

Arguments

latitud_vector

number of column in data with latitud column

longitud_vector

number of column in data with longitud column

token

API token supplied by INEGI

meters

Distance in meters to search by coordinate

keyword

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

Details

Some columns, like employee numbers are experimental (the employees are added considering size of company).

Value

Data.frame

Author(s)

Eduardo Flores

Examples

## 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)

## End(Not run)

[Package inegiR version 3.0.0 Index]