fncols {cbpManager} | R Documentation

## Add empty column to a data.frame, if column does not exist in the data.frame

### Description

Add empty column to a data.frame, if column does not exist in the data.frame

### Usage

    fncols(data, cname)

### Arguments

`data` | data.frame
`cname` | column name

### Value

data.frame

### Examples

    cbpManager:::fncols(data.frame(a=c(1,2,3), b=c(4,5,6)), "new")

[Package cbpManager version 1.2.2 Index]