Learn R Programming

JumpeR (version 0.3.0)

flash_correct_column_overshoot_helper: Vectorizes flash_correct_column_overshoot

Description

When naming columns based on the contents of a data frame the position of a particular term, eg "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

flash_correct_column_overshoot_helper(x, df)

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