Description Usage Arguments Value Examples
Search Federal RePORTER Projects
1 2 3 4 |
project_number |
unique number that is assigned to a project
by the affiliated federal agency. Examples, 5R01MH092950-05,
1R01CA183929-01A1, USFS-0000779.
Can also use wildcards such as |
fiscal_year |
Fiscal year of data to obtain |
text |
Search text from title, abstract, and terms data |
text_field |
text field to search, can be title, abstract or terms,
and defaults to search all. Only enabled when |
text_operator |
Text operator to combine text terms,
Can be AND or OR, AND is default.
Only enabled when |
agency |
Agency code to search. see |
pi_name |
Principal investigator name. Names are to be in the
|
offset |
start at item # (starts at 1) |
limit |
max # of items to return (at the most 50 per request) |
verbose |
print diagnostic messages |
secure |
Should https be used, passed to |
List of the result of the GET
call and
the content
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | res = fe_projects_search(
project_number = "USFS*",
fiscal_year = 2012)
res = fe_projects_search(
project_number = "*R01*",
fiscal_year = 2012,
agency = "NIH",
text = "stroke",
text_field = "title")
## Not run:
res = fe_projects_search(pi_name = "MATSUI, ELIZABETH")
items = res$content$items
con_pis = sapply(items, "[[", "contactPi")
keep = grepl("^MATSUI", con_pis)
items = items[keep]
mat_costs = sapply(items, "[[", "totalCostAmount")
sum(mat_costs)
res = fe_projects_search(pi_name = "PENG, ROGER")
items = res$content$items
con_pis = sapply(items, "[[", "contactPi")
keep = grepl("^PENG", con_pis)
items = items[keep]
peng_costs = sapply(items, "[[", "totalCostAmount")
sum(peng_costs)
both = fe_projects_search(
pi_name = c("MATSUI, ELIZABETH", "PENG, ROGER"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.