Trying to replace values in a column with NA using the condition: if sensor is equal to 2032, and date is less than 2019-01-29 replace all values in column "temperature" with NA.
I have tried the code below but getting an error "argument "true" is missing, with no default"
filter(if_else(sensor == 2032 & date(date_time) < 2019-01-29), NA, temperature)
I have seen this solution but could not get it to work for me: