R/slp_info.R

Defines functions slp_info

Documented in slp_info

#' Retrieve information on standard load profiles
#'
#' Information and examples on standard load profiles from the
#' German Association of Energy and Water Industries (BDEW
#' Bundesverband der Energie- und Wasserwirtschaft e.V.)
#'
#' @return A list
#'
#' @param profile_id load profile identifier, required
#' @param language one of 'EN' (English), 'DE' (German)
#' @export
#'
#' @source <https://www.bdew.de/energie/standardlastprofile-strom/>
#' @source <https://www.bdew.de/media/documents/2000131_Anwendung-repraesentativen_Lastprofile-Step-by-step.pdf>
#' @source <https://www.bdew.de/media/documents/Zuordnung_der_VDEW-Lastprofile_zum_Kundengruppenschluessel.pdf>
#'
#' @examples
#' slp_info("G5", language = "DE")
#'
#' # multiple profile IDs are supported
#' slp_info(c("G0", "G5"))
slp_info <- function(profile_id, language = c("EN", "DE")) {

  match_profile(profile_id)

  language <- toupper(language)
  language <- match.arg(language)

  if (language == "EN") {
    out <- infos_EN[profile_id]
  } else {
    out <- infos_DE[profile_id]
  }
  out
}

Try the standardlastprofile package in your browser

Any scripts or data that you put into this service are public.

standardlastprofile documentation built on May 29, 2024, 2:54 a.m.