Learn R Programming

sdglinkage (version 0.1.0)

get_address: Get an address.

Description

get_address get an address using an API from random_postcode. The API sample a real UK address from https://api.postcodes.io/random/postcodes.

Usage

get_address(postcode = NA)

Arguments

postcode

A string

Value

The output is a list of 5 variables: 1) postcode of the UK address, 2) country, 3) primary_care_trust 4) longitude of the address and 5) latitude of the address. #' If postcode is given, the return address is an address with the defined outward postcode

Examples

Run this code
# NOT RUN {
get_address()
get_address('w3')

# }

Run the code above in your browser using DataLab