Displaying 1 result from an estimated 1 matches for "kevinlong".
Did you mean:
kevinking
2010 Mar 01
1
Naming output of a for loop
...he regression
corresponds to. The following code following this text is an example of what
I used to perform the regression. I would like my output from the loop to
label each regression based on the data used for the analysis.
Thank-you for your help
Kevin Long
Example Code:
setwd("/Users/kevinlong/Desktop/R Example")
list <- list.files()
for (x in list) {u <- read.table(x,header = T, sep=",")
regression <- lm(u$R~u$T)
print(regression)
}
--
Kevin Long, M.Sc.
Environmental Science Technician
University of Calgary
Phone: (403) 804-6855
[[alternative HTML...