powered by
Add list name as a column to a list of data.frames.
add_name_column(dlist, destinationColumn)
list of data frames, each of which as the new destinationColumn.
named list of data.frames
character, name of new column to add
dlist <- list(a = data.frame(x = 1), b = data.frame(x = 2)) add_name_column(dlist, 'name')
Run the code above in your browser using DataLab