Hello,
You can process several files at a time with repeated use of *appy
functions. Something like the following (not tested).
# This first instruction may not be needed
old_dir <- setwd("path/to/txt/files")
# Get the filenames in a vector and read them in
txt_files <- list.files(pattern =
Hi all,
I am looking for syntax to read a list of *txt files, (loop through?)
each with a different data content but same fields, then run lines of
code to produce summary stats (I have working code for this) and add the
matching data file name when writing the results of a line of R code.
S
2 matches
Mail list logo