[R] Looping

Steven Yen @tyen @end|ng |rom ntu@edu@tw
Mon Feb 19 04:27:44 CET 2024


I need to read csv files repeatedly, named data1.csv, data2.csv,… data24.csv, 24 altogether. That is, 

data<-read.csv(“data1.csv”)
…
data<-read.csv(“data24.csv”)
…

Is there a way to do this in a loop? Thank you.

Steven from iPhone
	[[alternative HTML version deleted]]



More information about the R-help mailing list