R: Add more of example for R language
R: Add vectorized operations to the examples
R: Add examples of how to read and write data