Learn R Programming

geotools (version 0.1)

codesNearToCode: Getting city near to others

Description

codesNearToCode() returns a list of zip code near to specified zip code

cityNearToCode() returns a list of city name near to specified zip code

city() returns a list of city name that have a zip code

Usage

codesNearToCode(code,kms) cityNearToCode(code,kms) zipCode(city) cities(code)

Arguments

code
A postal code i.e. 75000 for Paris
kms
Integer, number of kilometer.
city
The name of a city i.e. "Paris". Name is in ascii only; i.e. no accent for "Bezier"

Examples

Run this code
## get "Paris"
cities(75000)

## inverse: get 75000: postal code for Paris
zipCode("Paris")

## all postal code at 7 kms from Paris
codesNearToCode(75000,7)

## idem, with city name
cityNearToCode(75000,7)

Run the code above in your browser using DataLab