suppose we have a dataframe that have two cloumn's and any column have many value.
d1 <- data.frame(name = c("a", "b", "c", "d"),
code = c("x", "y", "w", "z"))
and we have four csv
files (a.csv, b.csv ,c.csv ,d.csv
) that we want to read the name's of column of d1
one by one and mutate in read csv file column's name
and code
by value's.
for example in a.csv
file we want create two columns (name, code
) bya
and x
value and then read b.csv
create two columns (name, code
) byb
and y
value and merged to previous , .... and the end return complete csv fie by for csv file's.