I'm trying to import multiple files with vroom rather than read_delim in a for loop. The multiple files have nearly but not exactly identical file structures. One of the files has one less column than the others. Is there a way to make it still import all files and just have NAs for the missing columns data?
Here are the files I want to import: https://www.cde.ca.gov/ds/sd/sd/filessd.asp
files <- fs::dir_ls(glob = "susp*txt")
susp_vroom <- vroom(files)
Error: Files must all have 22 columns:
- File 7 has 21 columns