Title: | Provides Helper Functions for DataKind Volunteers |
---|---|
Description: | DataKind volunteers often need access to specific data or techniques in a DataDive or other project. This package seeks to simplify access to these resources. |
Authors: | Robin Penfold [aut, cre] |
Maintainer: | Robin Penfold <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.2 |
Built: | 2024-10-31 18:37:09 UTC |
Source: | https://github.com/p0bs/DataKindR |
This function cleans UK postcode data before returning the relevant section (such as its first part of full postcode).
postcodes(postcode_value, postcode_type = "full")
postcodes(postcode_value, postcode_type = "full")
postcode_value |
The postcode data to be cleaned (in the form of 'N1 1AA', 'ME1 2RE' or 'TN12 0QS'). |
postcode_type |
The relevant section of the postcode to return. Only one section is permitted. Options are:
|
postcodes( postcode_value = 'ME1 2re ', postcode_type = 'region' )
postcodes( postcode_value = 'ME1 2re ', postcode_type = 'region' )
This function takes clean UK postcode data and returns key geographic metadata. Details include: LSOA, MSOA, Latitude, Longitude, Rank of Deprivation Index (out of 32,844 in total) and Constituency.
postcodes_metadata(postcode_value)
postcodes_metadata(postcode_value)
postcode_value |
The postcode data to be cleaned (in the form of 'N1 1AA', 'ME1 2RE' or 'TN12 0QS'). To clean this data, you could pass it through the 'postcodes' function in this package. |
postcodes_metadata( postcode_value = "ME1 2RE" )
postcodes_metadata( postcode_value = "ME1 2RE" )