I have several txt files, and their names are 1.txt, 2.txt,3.txt and … 100.txt
I want to read these files in R language in loop. My code is:
For(I in 1:100){
Datai<-read.table(“H://”+’i’+”.txt”)
}
But when I run I get this error:
non-numeric argument to binary operator
How can I solve this problem?