Skip to contents

Select columns from one dataframe based on the column spec of a second dataframe

Usage

select_like(df, template_df)

Arguments

df

Dataframe from which to select columns

template_df

Dataframe to use as a template for the column specification

Value

The result of calling dplyr::select() on df, raising an error if not all of the columns from template_df can be found.