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)
sccall | Current list of parameters carried forward from prior functions in the chain (ignore) |
---|---|
api_key | Personal API key requested from
https://api.data.gov/signup stored in a string. If you
first set your key using |
debug | Set to true to print and return API call (URL string) rather than make actual request. Should only be used when debugging calls. |
print_key_debug | Only used when |
To obtain an API key, visit https://api.data.gov/signup
# NOT RUN { sc_get('<API KEY IN STRING>') key <- '<API KEY IN STRING>' sc_get(key) # }