I have a few small and large (6gig) data files from FEMA that I want to load into data frames in R using the readr tools. Here is an example of the first few lines of the files. All have headers and appear to use the “^” as a separator:
“INCIDENT_KEY”^”STATE”^”FDID”^”INC_DATE”^”INC_NO”^”EXP_NO”^”NFIR_VER”^”FDIDRECAID”^”FDIDSTREC”^”INC_NOFDID”
“AK_12100_05052022_2000015_0″^”AK”^”12100″^05052022^”2000015″^0^”5.0″^”12150″^”AK”^”050522”
“AK_13000_05022022_780_0″^”AK”^”13000″^05022022^”780″^0^”5.0″^”13400″^”AK”^”0072”
“AK_13000_06112022_1073_0″^”AK”^”13000″^06112022^”1073″^0^”5.0″^”15250″^”AK”^”111”
“AK_13000_06112022_2201073_0″^”AK”^”13000″^06112022^”2201073″^0^”5.0″^”15250″^”AK”^”111”
“AK_13000_07042022_1269_0″^”AK”^”13000″^07042022^”1269″^0^”5.0″^”15250″^”AK”^”122”
“AK_13000_08022022_1510_0″^”AK”^”13000″^08022022^”1510″^0^”5.0″^”13400″^”AK”^”138”
This code…
calls <- read_delim(“basicincident.txt”, header = TRUE, sep = “^”)
Results in this error:
Error in read_delim(“basicincident.txt”, header = TRUE, sep = “^”) :
unused arguments (header = TRUE, sep = “^”)
Can you show me the error of my ways? Thanks!