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, ...)
Dataframe
Character name of column in df
to test against 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
.
Filtered df
.