Add list name as a column to a list of data.frames.
add_name_column(dlist, destinationColumn)
dlist | named list of data.frames |
---|---|
destinationColumn | character, name of new column to add |
list of data frames, each of which as the new destinationColumn.
#> $a #> x name #> 1 1 a #> #> $b #> x name #> 1 2 b #>