This is a pre-processing task better performed outside R. From the terminal directory containing the csv files (and only those files) to be processed.
$ head 1 * > collect
$ head 2 * | tail -1 >> collect
$ mv collect collect.csv
then in R
readr::read_csv("collect.csv") -> dat