R, if you are meaning the correlation coefficient between two variables which it seems as though you are, is only usable for two quantitative variables. Further, to be reliable, both of those variables must be normally distributed, or transformed in such a way that they are normally distributed.

There are correlation statistics which can be use for categorical variables, but R isn't one of them.