There are no prerequisites for learning R programming. Even people with no programming background can master R programming within a short span. However, there are majorly two kinds of people who can learn R programming: Statisticians and people who want to get into the field of Data Analytics. As R programming is a statistical analysis tool, Statisticians have an advantage over others for learning it. This is because they are already experienced in various statistical analysis methodologies.
If you are looking for an online course to learn R programming, check out this R Programming Training by Intellipaat.