Comp Cannot Be Used As A Function Of In R