inegi_denue_stats: Returns statistics of coordinate

Description Usage Arguments Details Value Author(s) Examples

View source: R/v3_denue.R

Description

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

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

inegiR documentation built on July 14, 2019, 5:02 p.m.