I am trying to read TXT files in a compressed folder with two folders inside.
Data (main folder)
- river (subfolder)
- treatment (subfolder)
Inside river I have many files in txt format and I am using the following code to read them.
df <- fread(cmd = 'unzip -p Data.zip river//Main.txt',
select = c(1,2,5,25),
sep = '|',
header = FALSE,
stringsAsFactors = FALSE,
quote = "")
However, this results in 0 observations and I am getting the following error:
caution: filename not matched: river//Main.txt