I am downloading the data from the following site (https://www.dol.gov/agencies/eta/performance/results).
from here, I scroll down to PY 2022, Q2 and click on WIOA Indvidual Performance Records and download the 562 MB file.
In R, I use the following code,
library(data.table)
library(tidyverse)
library(stringr)
library(lubridate)
setwd("file/path")
WIOA <- read.table(gzfile("WIOA.gz", ""))
and I get the following error
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 5 elements
I know that this error has been discussed in past questions. However, I can't figure out how to actually look at the data before importing. This would help because then I could give a layout in the import script. Any thoughts on how to get around this?