Update getSDW.R

Added alternative versions of the function.