Skip to contents

Retrieves data for a period of time in the past 20 years using TADA_DataRetrieval. This function can be used for testing functions on random datasets.

Usage

TADA_RandomTestingData(
  number_of_days = 1,
  choose_random_state = FALSE,
  autoclean = TRUE
)

Arguments

number_of_days

Numeric. The default is 1, which will query and retrieve data for a random two-day period (e.g.startDate = "2015-04-21", endDate = "2015-04-22"). The user can change this number to select additional days if desired.

choose_random_state

Boolean (TRUE or FALSE). The default is FALSE. If FALSE, the function will query all data in the WQP for the number_of_days specified (national query). If TRUE, the function will select a random state and only retrieve data for that state.

autoclean

Boolean (TRUE or FALSE). The default is TRUE. If FALSE, the function will NOT apply the TADA_AutoClean as part of the TADA_DataRetrieval. If TRUE, the function WILL apply TADA_AutoClean as part of TADA_DataRetrieval.

Value

Random WQP dataset.

Examples

if (FALSE) { # \dontrun{
df <- TADA_RandomTestingData(number_of_days = 1, choose_random_state = FALSE)
df <- TADA_RandomTestingData(number_of_days = 10, choose_random_state = TRUE)
df <- TADA_RandomTestingData(number_of_days = 5, choose_random_state = TRUE, autoclean = FALSE)
} # }