Learn R Programming

grobblR (version 0.2.1)

column_names_to_row: Take a data.frame/matrix and insert its column names as the first row of the resulting matrix.

Description

Take a data.frame/matrix and insert its column names as the first row of the resulting matrix.

Usage

column_names_to_row(df)

Value

A matrix of the initial data.frame/matrix with its column names as the first row.

Arguments

df

The data.frame/matrix.