I am trying to build a data frame from two others which monitor animal activity based on temperature. I want a dataframe where Activity =1 if the animal was active at that t