remove_weird_characters: 'remove_weird_characters' Removes certain characters from...

Description Usage Arguments Details Value Examples

View source: R/remove_weird_characters.R

Description

remove_weird_characters Removes certain characters from entries in the address column.

Usage

1

Arguments

addresses

The dataframe column containing the addresses.

Details

Some characters, like '#', ”, or '.' can throw off Google's API when included in the http request, since they serve specific purposes in dividing the URL. To avoid error, this function removes those special characters.

Value

returns the input dataframe column with special characters replaced by whitespace

Examples

1
2
3
4
5
## Not run: 
remove_weird_characters(as.data.frame("720 Bathurst St #411, Toronto, ON M5S 2R4"))
remove_weird_characters(data['address'])

## End(Not run)

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