TADA_RandomTestingData | R Documentation |
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. Only random data sets with 10 or more results will be returned. If a random dataset has fewer than 10 results, the function will automatically create another random WQP query until a df with greater than 10 results is returned.
TADA_RandomTestingData(
number_of_days = 1,
choose_random_state = FALSE,
autoclean = TRUE
)
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. |
Random WQP dataset.
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.