flash_correct_column_overshoot: Corrects column index overshoots when naming columns based on...

Description Usage Arguments Value See Also

View source: R/flash_correct_column_overshoot.R

Description

When naming columns based on the contents of a data frame the position of a particular term, e.g. "Athlete" is used to name a column "Athlete". If there is a blank row at the top of the data frame then the position of "Athlete" will be offset by the number of columns in the data frame. This function corrects for that.

Usage

1

Arguments

x

a column position index

df

a data frame with missing column names

Value

a correct index for column x

See Also

flash_correct_column_overshoot is a helper function inside flash_parse_table


JumpeR documentation built on Nov. 17, 2021, 1:07 a.m.