Both have their advantages. So it's hard to say one is better than the other. To me, it's better to know both. R is gaining popular now, although SAS has the advantage that it is well established and many companies use it. So you can start or focus on one, such as R, and then also take some time to learn the other.