add_key: Add key column in the begining of your dataframe.

Description Usage Arguments Examples

View source: R/add_key.R

Description

Add a column with key numbers in the begining of the dataframe. You can use this column later as a reference to join your dataset.

Usage

1
add_key(x, colname = "key")

Arguments

x

Input dataframe.

colname

Custom name for the key column. Default value is "key".

Examples

1
2
3
x <- data.frame(V1 = c("A", "B", "C"),
                V2 = c("D", "E", "F"))
add_key(x, "key_column")

tkostas/komics documentation built on May 24, 2019, 7:31 a.m.