Ignoring 'nan's in elm