R/gethindex.R

Defines functions gethindex

Documented in gethindex

#' Provides H-index
#'
#' @param id Short-ID.
#' @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 H-index.
#'
#' @examples
#' \dontrun{
#' gethindex('pmo915', code = YOURCODE)
#' }
#'
#' @md
#' @export

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

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