So I'm working on an Coursera assignment for an R course. 

I'm using a for loop to try to create a data frame that combines the data of 332 csv files. 
The for loop only returns the data frame of the last (332th) csv file. 
What am I doing wrong?

```
corr <- function(directory, threshold = 0) {

  files <- Sys.glob("specdata//*.csv")

  ## Create empty numeric vector to append the nitrate values
  nitr <- numeric()
  ## Create empty numeric vector to append the sulfate values
  sulf <- numeric()

  for (j in 1:length(files)) {
    read.data <- read.csv(files[j])
  }
}

```