Is it possible to (1) use select helpers and (2) check type of columns to apply a function?
For example this will not work - I would like to convert to factor all integer columns the names of which do not contain "VAL":
dane_usa_nr%>%
mutate_at(vars(!contains("VAL")) & is.integer , as.factor)
Is it possible with some other syntax in dplyr?