Learn R Programming

inegiR (version 3.0.0)

inegi_denue_stats: 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")

Value

Data.frame

Details

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

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