add_name_column: Add list name as a column to a list of data.frames.

Description Usage Arguments Value Examples

View source: R/addNameCol.R

Description

Add list name as a column to a list of data.frames.

Usage

1
add_name_column(dlist, destinationColumn)

Arguments

dlist

named list of data.frames

destinationColumn

character, name of new column to add

Value

list of data frames, each of which as the new destinationColumn.

Examples

1
2
dlist <- list(a = data.frame(x = 1), b = data.frame(x = 2))
add_name_column(dlist, 'name')

WinVector/wrapr documentation built on Aug. 15, 2018, 4:04 p.m.