Problem with return code/subvector

Hi:

my_code <- function(a,b,c)
{d<-(b>=a<=c)
return(d)}

Can you spot what is wrong with this return code? Is subvector d made wrong?

No problem with the return, but you can't make two comparisons at once, you need to use &.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.