using
system(paste("wc -l file_1.txt"))
in R to get the line number of the file Output
1601 file_1.txt
My problem is that if I type system (paste ("wc -l file_1.txt")) β kt and then
kt [1] 0
I would have to say
system(paste("wc -l file_1.txt"))->kt kt[1]==1600
or not .. but I canβt access the elements from the system commadn or printout ... how can I do this to somehow check if the file has 1600 lines without reading it first in R ...
source share