This function gets the College Scorecard data by compiling and converting all the previous piped output into a single URL string that is used to get the data.
sc_get(
sccall,
api_key,
debug = FALSE,
print_key_debug = FALSE,
return_json = FALSE
)
Current list of parameters carried forward from prior functions in the chain (ignore)
Personal API key requested from
https://api.data.gov/signup stored in a string. If you
first set your key using sc_key
, then you may omit this
parameter. A key set here will take precedence over any set in
the environment (DATAGOV_API_KEY).
Set to true to print and return API call (URL string) rather than make actual request. Should only be used when debugging calls.
Only used when debug == TRUE
. Default
masks the api_key
value. Set to TRUE
to print the
full API call string with the api_key
unmasked.
Return data in JSON format rather than as a tibble.
To obtain an API key, visit https://api.data.gov/signup
if (FALSE) {
sc_get('<API KEY IN STRING>')
key <- '<API KEY IN STRING>'
sc_get(key)
}