As part of the problem I'm solving, I need to append 50 files into one file. I was hoping if I could do the same using a for loop but I'm unable to do so since list.files() just gives the literal name of the file and not the data within it.
Could someone help me execute a similar logic in R:
c = list.files()
for (i = 1:length(c))
{
a = c[i]
% any operation on 'a' since it now contains the data of the first file in c
}
But the above does not seem to work because 'c' has just the literal names of the file and not the data.
Could someone please guide me on how this can be done?