R/msc_budget.R

Defines functions msc_budget

Documented in msc_budget

#' @title Budget accounts, accounting balances matrix
#' @description Details of the records reported in the accounting accounts that
#' receive budget entries.
#' @param year is a numeric vector
#' @param month is a numeric vector
#' @param cod is a numeric vector. Brazilian Institute of Geography and
#' Statistics (IBGE) code assigned to each municipality and state.
#' @param matrix_type is a character. Matrix type, monthly or aggregate
#' \code{"MSCC"} or year-end \code{"MSCE"}
#' @param class is a numeric vector, integer between 5 and 6. Class of
#' accounting accounts that receive entries of a budgetary nature.
#' @param value is a character. The detailed values can be of three types:
#' opening balance \code{"beginning_balance"}, movement \code{"period_change"}
#' or ending balance \code{"ending_balance"}
#' @param verbose is a logical. Enable verbose mode. Default is \code{FALSE}
#' @note
#' Refers to the accounting accounts for approval of the approval (class 5) and
#' execution (class 6) of the planning and budget, as well as their respective
#' complementary information
#' @return \code{tibble}
#' @export

msc_budget <- function(year,
                       month,
                       cod,
                       matrix_type,
                       class,
                       value,
                       verbose = FALSE) {
  get(
    type = "msc_orcamentaria",
    an_referencia = year,
    me_referencia = month,
    id_ente = cod,
    co_tipo_matriz = matrix_type,
    classe_conta = class,
    id_tv = value,
    verbose = verbose
  )
}

Try the siconfir package in your browser

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

siconfir documentation built on Jan. 15, 2023, 5:09 p.m.