basic R code to read data