R/functions.R
fncols.RdAdd empty column to a data.frame, if column does not exist in the data.frame
fncols(data, cname)
| data | data.frame |
|---|---|
| cname | column name |
data.frame
cbpManager:::fncols(data.frame(a=c(1,2,3), b=c(4,5,6)), "new") #> a b new #> 1 1 4 #> 2 2 5 #> 3 3 6