How to Avoid an Error Calling gt: Incompatible Types For Comparison Causes an Error

gt: incompatible types for comparison causes an error. This is a common error, which may occur because a data set does not have all of the required data types. Fortunately, there are many ways to avoid this error. One way is to use an expression instead of a formula. For instance, you could use “%” instead of “%” to calculate the percentile of the genotype in question.