CreateHeader: A function that takes the first row of a dataframe and makes...

View source: R/CreateHeader.R

CreateHeaderR Documentation

A function that takes the first row of a dataframe and makes it the header

Description

A function that takes the first row of a dataframe and makes it the header

Usage

CreateHeader(dataframe)

Arguments

dataframe

This is a dataframe

Value

'CreateHeader()' returns a dataframe where the previous first row has now become the header.

Examples

df <- data.frame(x = c("Height",180), y = c("Weight", 160))
df
CreateHeader(df)

smbjohnson/UtilityFunctions documentation built on July 1, 2022, 7:55 p.m.