Skip to contents

Get the current Veterans Affairs data.


current_va_data(.data, .data_sets = c("Behavioral", "Timely", "Provider"))



The data that results from the current_hosp_data() function.


The default is: c(Facility","State","National"), which will bring back all of the data in the Veterans Affairs data sets that are in the file. You can choose from the following:

  • Behavioral

  • Timely

  • Provider

You can also pass things like c("behavioral","Provider") as behind the scenes only the Veterans Affairs data sets are available to the function to choose from and grep is used to find matches with = TRUE set.


Gets the current Veterans Affairs data from the current hospital data file.


This function will obtain the current Veterans Affairs data from the output of the current_hosp_data() function, that is the required input for the .data parameter. You can pass in a list of which of those data sets you would like,


Steven P. Sanderson II, MPH


if (FALSE) {
current_hosp_data() |>
  current_va_data(.data_sets = c("Behavioral"))