Skip to contents

SPSS's Select Cases dialog creates a 0/1 variable named filter_$ (mangled to filter_. or filter_ by some importers). Its presence matters to a re-user either way: if it is constant at 1 the file was saved after deleting unselected cases, so the shared data are a pre-filtered subset; if it varies, the reported analyses likely used only the selected rows and the filter must be re-applied to reproduce them.

Usage

data_check_spss_filter(col, x)

Arguments

col

the column name

x

the column's values

Value

list(problem, message, values)

Author

Daniel Lakens and Levi Baruch

Examples

data_check_spss_filter("filter_$", rep(1, 30))$problem
#> [1] TRUE