R beginner here.
The data from a relative humidity sensor malfunctioned and produced values over 100 and need to converted into NaNs. Any help is appreciated! Should I use ifelse?
This code hive1.1[hive1.1$int_h > 100] <- NaN produces this error:
Error in [<-.data.frame
(*tmp*
, hive2.1$int_h > 100, value = NaN) :
missing values are not allowed in subscripted assignments of data frames