add cs basis function
Merge branch 'master' of https://github.com/mclark--/Miscellaneous-R-Code