Sql Server Modulo Function In R