added matrix.as.index.R
Merge branch 'master' of https://github.com/yang-zhang/r-practice