Using the answer from here [Importing several files and indexing them ]
list files with .csv extension - this assumes that the only .csv files in your working directory are the ones you want to read
files <- list.files(pattern = '\\.csv')
read files into a list - are there headers?
tables <- lapply(files, read.csv, header = TRUE)
rbind files
combined.df <- do.call(rbind , tables)
You can then find the mean - find which columns are numeric
s <- sapply(combined.df, is.numeric)
find the mean of numeric variables
colMeans(combined.df[s])