get_components: 'get_components' A function that appends separate components,...

Description Usage Arguments Details Value Examples

View source: R/get_components.R

Description

get_components A function that appends separate components, like postal code and province, as new variables to a geocoded df.

Usage

1

Arguments

df

A dataframe object with at least one column that contains the full addresses from which components are extracted.

Details

The function extracts the postal code (and later the province) from the full address column of the input dataframe. It appends these components to the df as separate variables, and returns a new dataset

Value

A dataframe with full address and components (postal code, prov,..) and potentially other data.

Examples

1
2
3
4
## Not run: 
get_components(coded)

## End(Not run)

12mre1/geocodr documentation built on Oct. 30, 2019, 4:02 a.m.