sr_find_header_row: Utility function for finding the row in a dataframe where...

Description Usage Arguments Value

Description

Utility function for finding the row in a dataframe where column names from an input source are. (Sometimes meta data lives at the top of csv reports. We want to get rid of that)

Usage

1
sr_find_header_row(df, source_colnames, check_length = 100)

Arguments

df

a dataframe we want to find the header row of

source_colnames

a vector of column names we wish to evaluate the dataframe against

check_length

in the event df's colnames are not the desired source_colnaes, the number of rows under the column headers to check for the column names

Value

an integer with the row number of the correct column names - 0 if the column names are correct already, NA if the column names were not found


chriscardillo/stitchr documentation built on May 8, 2019, 11:54 a.m.