add_columns: Add named empty columns to a dataframe

Description Usage Arguments Value Examples

View source: R/add_columns.R

Description

Add columns to a dataframe that can be used for manual coding

Usage

1
add_columns(df = NULL, columns = NULL, before = TRUE)

Arguments

df

data frame of articles

columns

a vector of column names <chr> to be added

before

<lgl> Should the new variables be in the beginning of new df (default)

Value

A data frame that contains the article info with empty columns for manual data entry

Examples

1
2
3
add_columns(df = workaholism_scopus,
            columns = c("decision","reason"),
            before = TRUE)

nthun/metamanager documentation built on Aug. 9, 2019, 1:37 p.m.