row_to_var: row_to_var function

View source: R/format.R

row_to_varR Documentation

row_to_var function

Description

deprecated but remains for functional use. given a data frame takes the first row of the data frame and makes it the variable names and then removes the first row. this is useful when using rbind or when an imported dataset doesn't account for headers

Usage

row_to_var(df)

Arguments

df

a dataframe for which you want to turn the first row into variable names

Examples

row_to_var_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.