Filter the rows of a dataframe that fail a function applied to a column.

filter_test_func(df, test_col = "path", test_func = terra::rast, ...)

Arguments

df

Dataframe

test_col

Character name of column in df to test against test_func.

test_func

Name of function to test test_col with. test_col must be the first argument to test_func.

...

Other arguments passed to test_func.

Value

Filtered df.