Skip to contents

Checks that columns are numeric in df, and returns error message specifying that they must either be numeric or explicitly included in the average_cols grouping to be used for averaging.

Usage

assert_numeric_cols_avg(cols, df)

Arguments

cols

Columns to check

df

Data frame with columns