Is there any way to achieve functionality like tidyverse's any_of()?
My use case is that I am reading only certain columns of a file, but there could be columns specified in the call, but non-existent in the file:
vars = ["one", "two", "three"] # column two does not exist in the file
df = read_csv(file, col_select=any_of(vars))
Is there any way to achieve functionality like tidyverse's
any_of()?My use case is that I am reading only certain columns of a file, but there could be columns specified in the call, but non-existent in the file: