Learning R language samples