get_awards: Get NSF Arctic/Polar program award information.

Description Usage Arguments Author(s) Examples

View source: R/database_functions.R

Description

Uses the NSF API to get all records pertaining to the Arctic or Polar programs. Originally in the 'NCEAS/datamgmt' package. Added to this repo because the import of datamgmt is too costly.

Usage

1
get_awards(from_date = NULL, to_date = NULL, query = NULL, print_fields = NULL)

Arguments

from_date

(character) Optional. Returns all records with start date after specified date. Format = mm/dd/yyyy

to_date

(character) Optional. Returns all records with start date before specified date. Format = mm/dd/yyyy

query

(character) Optional. By default, the function searches for all awards with either 'polar' or 'arctic' in the fundProgramName. Additional queries can be specified as defined in the NSF API. Use '&' to join multiple queries (i.e., keyword=water&agency=NASA)

print_fields

(character) Optional. By default, the following fields will be returned: id, date, startDate, expDate, fundProgramName, poName, title, awardee, piFirstName, piLastName, piPhone, piEmail. Additional field names can be found in the printFields description of the NSF API.

Author(s)

Irene Steves

Examples

1
2
3
4
5
## Not run: 
all_awards <- get_awards()
new_awards <- get_awards(from_date = '01/01/2017')

## End(Not run)

NCEAS/awards-bot documentation built on Sept. 6, 2021, 1:47 a.m.