robust_header_matching: robust matching of column names to a data.frame, returns the...

View source: R/util_files.R

robust_header_matchingR Documentation

robust matching of column names to a data.frame, returns the matched subset of columns

Description

robust matching of column names to a data.frame, returns the matched subset of columns

Usage

robust_header_matching(x, column_spec, columns_required)

Arguments

x

a data.frame

column_spec

named list where names are the target column names and values are vectors of column names to search for in parameter x

columns_required

a vector of columns that are required (i.e. throw error if any of these are missing). Should match the names in column_spec


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.