| get_salt | R Documentation |
This function downloads detailed alternative unemployment measures data from BLS, including U-1 through U-6 measures. The data provides a more comprehensive view of labor market conditions beyond the standard unemployment rate (U-3).
get_salt(
only_states = TRUE,
geometry = FALSE,
suppress_warnings = TRUE,
return_diagnostics = FALSE
)
only_states |
Logical. If TRUE (default), includes only state-level data. If FALSE, includes sub-state areas like New York City where available. |
geometry |
Logical. If TRUE, uses tigris::states() to download shapefiles for the states to include in the data. If FALSE (default), only returns data table. |
suppress_warnings |
Logical. If TRUE (default), suppress individual download warnings and diagnostic messages for cleaner output during batch processing. If FALSE, returns the data and prints warnings and messages to the console. |
return_diagnostics |
Logical. If TRUE, returns a bls_data_collection object with full diagnostics. If FALSE (default), returns just the data table. |
By default, returns a data.table with Alternative Measures of Labor Underutilization data. If return_diagnostics = TRUE, returns a bls_data_collection object containing data and comprehensive diagnostics. The function also adds derived measures and quartile comparisons across states.
## Not run:
# Download state-level SALT data
salt_data <- get_salt()
# Include sub-state areas
salt_all <- get_salt(only_states = FALSE)
# Download SALT with geometry included
get_salt(geometry = TRUE)
# Get full diagnostic object if needed
data_with_diagnostics <- get_salt(return_diagnostics = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.