Skip to content

Commit

Permalink
Smaller example
Browse files Browse the repository at this point in the history
  • Loading branch information
rfsaldanha committed Jun 17, 2024
1 parent 9259ee7 commit ab8e5ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
19 changes: 9 additions & 10 deletions R/fetch_datasus.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,19 @@
#' @examplesIf curl::has_internet() & RCurl::url.exists("ftp.datasus.gov.br", .opts = list(timeout = 3))
#' \donttest{
#' # Fetch two years of data from SIM-DO
#' fetch_datasus(year_start = 2010, year_end = 2011,
#' information_system = "SIM-DO")
#' res <- fetch_datasus(year_start = 2010, year_end = 2011, uf = "AC",
#' information_system = "SIM-DO")
#'
#' # Fetch one year of data from SIM-DO and keep only three variables
#' fetch_datasus(year_start = 2014, year_end = 2014,
#' information_system = "SIM-DO",
#' vars = c("CODMUNRES", "DTOBITO", "CAUSABAS"))
#' res <- fetch_datasus(year_start = 2014, year_end = 2014,
#' information_system = "SIM-DO", uf = "AC",
#' vars = c("CODMUNRES", "DTOBITO", "CAUSABAS"))
#'
#' # Fetch some months' data from SIH-RD for four states
#' fetch_datasus(year_start = 2014, month_start = 1,
#' year_end = 2014, month_end = 2,
#' uf = c("AC", "RR"),
#' information_system = "SIH-RD")
#' }
#' res <- fetch_datasus(year_start = 2014, month_start = 1,
#' year_end = 2014, month_end = 2,
#' uf = c("AC", "RR"),
#' information_system = "SIH-RD")
#'
#' @return a \code{data.frame} with the contents of the DBC files.
#'
Expand Down
20 changes: 0 additions & 20 deletions man/fetch_datasus.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab8e5ea

Please sign in to comment.