i want to rbind all excel files (regardless the total amount of files) in a directory and make a new column that is filled with the name of files, so then i could identify where the data came from. For example, i have template of file like this
promo stock
a 200
b 200
c 200
to be like this
store promo stock
file1 a 200
file1 b 200
file1 c 200
file2 a 200
file2 b 200
file2 c 200
file3 a 200
file3 b 200
file3 c 200
how to make a for-loop order for this case? thanx in advance