get_data | R Documentation |
This function queries the API based on the information required and returns ids as these have no restriction applied to them. The IMD API restricts to 2k records for example.
Postcode and LSOA parameters require data because bringing all the data from the Online_ONS_Postcode_Directory_Live will take too long and is often unnecessary.
get_data(
data,
url_type = c("postcode", "imd"),
fix_invalid = TRUE,
column = "default"
)
data |
dataframe or vector.The data that will connect to either the postcode API or imd API. |
url_type |
String defaults to |
fix_invalid |
Boolean, default |
column |
String. Default would mean the automatic connection of a
column called |
data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.