I have a very big text file that I cannot read in R with read.table()
because of its huge size.
I know that with readLines()
function you may specify how many rows you want to import, but I would need to import one line at the time in a for loop, and save it in a new file or store in a vector/list/whatever...
So, something that in python
would be:
myfile=open("myfile.txt",mode="r")
for line in myfile:
line=line.strip()
line=line.split("\t")
print line
Is that possible with R?