Download BLS Time Series Data
fread_bls.RdThis function downloads a tab-delimited BLS flat file, incorporating diagnostic information about the file and returning an object with the bls_data class that can be used in the BLSloadR package.
Value
A named list with two elements:
- data
A data.table with the results of passing the url contents to 'data.table::fread()' as a tab-delimited text file.
- diagnostics
A named list of diagnostics run when reading the file including column names, empty columns, cleaning applied to the file, the url, the column names and original and final dimensions of the data.