Skip to content
Prev 379044 / 398502 Next

How to aggregate values in corresponding dataframes

Hello,

Maybe something like this?
Note that you *never* need to set header = FALSE, it already is the 
default of read.table. You would have to with read.csv.


old_dir <- setwd("~/directory")
f1990 <- list.files(pattern = "^199.*\\.txt$")
r1990 <- lapply(f1990, read.table)
setwd(old_dir)


Hope this helps,

Rui Barradas


?s 08:30 de 25/03/2019, lily li escreveu: