tsg_all_grants: All grants

Description Usage Arguments Details Value Examples

View source: R/all-grants.R

Description

Returns a list of data frames with details of all grants from funders returned by tsg_available().

Usage

1
tsg_all_grants(verbose = TRUE, timeout = 30, retries = 0, correct_names = TRUE)

Arguments

verbose

If TRUE, prints console messages on data retrieval progress. Defaults to TRUE.

timeout

The maximum request time, in seconds. If data is not returned in this time, a value of NA is returned for that dataset. Defaults to 30 seconds.

retries

The number of retries to make if a request is not successful. Defaults to 0.

correct_names

If TRUE, corrects known mistakes in column names, such as spelling mistakes. Defaults to TRUE.

Details

Due to the structure of the 360 Giving data, the package will make multiple attempts to request data. This can cause issues with servers automatically blocking requests. You can use tsg_missing() to identify missing sets of grant data.

Value

A list of tibbles with grant data.

Examples

1
2
3
4
## Not run: 
all_grants <- tsg_all_grants()

## End(Not run)

threesixtygiving documentation built on Dec. 2, 2020, 5:05 p.m.