regressoR (version 1.1.7)

new_col: new_col

Description

creates a new column.

Usage

new_col(data, name = "new_", values = NA)

Arguments

data

the data.frame to join with the new column.

name

the name of the new column.

values

the values of the new column.

Examples

Run this code
# NOT RUN {
new_col(iris)
new_col(iris, "var1", c(1,2,3))

# }

Run the code above in your browser using DataCamp Workspace