R: Find if value is within a certain percentage of any other value in its row
问题 I have a dataframe of values and for each value in the dataframe I want to determine if it is within say 10% of any other value in its row. I want to do this generically as I do not know how many columns I will have nor the names of the columns. Some values are NA, if all other values in the row are NA I want to return TRUE. For the actual values which are NA I want to return FALSE. The values are all positive but can be 0. For example say I have the follwoing dataframe dataDF <- data.frame(