Return the number of unique names found on pages in BHL.

Share:

Description

Names both with and without NameBank identifiers are counted.

Usage

1
2
bhl_namecount(startdate = NULL, enddate = NULL, as = "table",
  key = NULL, ...)

Arguments

startdate

start date of range between which to count names (optional)

enddate

end date of range between which to count names (optional)

as

(character) Return a list ("list"), json ("json"), xml ("xml"), or parsed table ("table", default). Note that as="table" can give different data format back depending on the function - for example, sometimes a data.frame and sometimes a character vector.

key

Your BHL API key, either enter, or loads from your .Renviron as BHL_KEY or from .Rprofile as bhl_key.

...

Curl options passed on to GET

Details

BEWARE: this API call can take a long time. They are likely working on speeding up the service, but slow for now.

Examples

1
2
3
4
5
6
## Not run: 
bhl_namecount(startdate = '12/25/2009', enddate = '12/27/2009')
bhl_namecount(startdate = '10/15/2009', enddate = '10/17/2009', as='json')
bhl_namecount(startdate = '10/15/2009', enddate = '10/17/2009', as='xml')

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.