Is the ~ character the equivalent of ! character
whats the R translation of this ?
sub_df = df [
(df["test_result"].isin(test_vals))
& (~df["value"].isin(na_vals))
]
test_vals = [
"positive",
"negative"
]
dup_na_vals = [
"na",
"",
"unknown"
]