Why do I get the following error when my variable in the 'if statement' has no missing values. I check with is.na(my variable) and it has no missing values Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed Best regards [[alternative HTML version deleted]]