I have a lot of very large txt-files
that have a header I would like to remove.
Is there a way to do this without reading in the entire file?
Possibly using the system()
command?
I found some ideas here but I haven't been able to make them work. I am using Windows 7 and R Version 3.2.2.
Here is what I have tried:
> systCommand <- paste0("echo '$(tail -n +2 ", myFilePath, ")' > ", myFilePath)
> system(systCommand, intern=T)
Error in system(systCommand, intern = T) : 'echo' not found
I am pretty sure that this is because I am using windows?