get_address: Get an address.

Description Usage Arguments Value Examples

View source: R/address.R

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

1
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

1
2

sdglinkage documentation built on April 27, 2020, 5:09 p.m.