importing and transforming many csv files

You can try map_dfr in the purrr package.

See article: