Description Usage Arguments Details Examples
This function takes BINs (Building Identification Number) and returns the
Geoclient response as a tibble. The BINs can be provided either in a vector
as a named argument or with a dataframe and column name of the BIN field. Your
Geoclient API key can either be provided directly as arguments,
or you can first use geoclient_api_key()
to add them to your .Renviron
file so they can be called securely without being stored in your code.
1 2 3 |
.data |
Dataframe containing columns to be used for other arguments. |
bin |
Either a vector of BINs (numeric or character is accepted), or a bare column name of the bin field if a dataframe is provided. |
key |
The API key provided to you from the NYC Developer Portal
formated in quotes. Defaults to |
rate_limit |
Whether you would like to limit the rate of API requests in
adherence to Geoclient's Service Usage Guidelines. See |
For more details see the Geoclient Documentation's guide to
making BIN requests,
interpreting the Geosupport return codes, the
data returned by geo_bin
,
and a complete data dictionary for
all possible data elements returned by any geoclient function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
geoclient_api_key("1a2b3c4", "9d8f7b6wh4jfgud67s89jfyw68vj38fh")
geo_bin(1015862)
library(dplyr)
df <- tibble(BIN = c("1008760", "1007941"))
geo_bin_data(df, BIN)
bind_cols(df, geo_bin_data(df, BIN))
mutate(df, bid = geo_bin(BIN)[["businessImprovementDistrict"]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.