promote_colnames: Promote Row to Column Names

Description Usage Arguments Value Examples

View source: R/promote_colnames.R

Description

Promote Row to Column Names

Usage

1
promote_colnames(.df, rownum = 1)

Arguments

.df

a data frame

rownum

numeric. The row in the data frame to be promoted to column names

Value

a data frame with the promoted row as column names

Examples

1
2
df <- data.frame(v1 = c("X", "123.45"), v2 = c("Y", "345.67"))
promote_colnames(df)

excelstrippr documentation built on Jan. 13, 2021, 6:05 a.m.