jakobbossek/re

addConstantColumns

Closed this issue · 1 comments

Often I have a list with scalar components and my goal is to append each component as a constant column to a data.frame.

mydf = addConstantColumns(mydf, a = 1, b = 2, c = 3)
mydf = addConstantColumns(mydf, list(a = 1, b = 2, c = 3)) # alternative call

Done