Error in if, the condition has length > 1
I am still learning R and currently and practicing generating pizza plots. I keep receiving this error:
Error in if (0 <= angle & angle < 90) { : the condition has length > 1
What does this mean and what are some possible solutions? Thanks.
I have tried ifelse(df <= 0, 0) which produced another Error stating " 'list' object cannot be coerced to type 'double' "