New sample file for R

This new sample file for R improves the Bayesian classifier and solves the issue #1139.