R/getinstrecord.R

Defines functions getinstrecord

Documented in getinstrecord

#' Get record of Institution
#'
#' @param id RePEc handle for an institution
#' @param code User code required to use API. Included in every API call.
#'   If not supplied, the REPEC_API_KEY environment variable will be used.
#'
#' @return data.frame.
#'
#' @examples
#' \dontrun{
#' getinstrecord('RePEc:edi:dechiit', code = YOURCODE)
#' }
#'
#' @export

getinstrecord <- function(id, code = NA) {
  repec_api_with_id(method = 'getinstrecord', id = id, code = code)
}

#' @rdname getinstrecord
#' @export
get_inst_record <- getinstrecord
chrMongeau/repec documentation built on May 17, 2019, 8:48 p.m.