Updated rf-stat.R to use the same input format of rf-stat