Package ‘switchcase’

A simple yet flexible switch-case construct for R. Function switchCase() provides the actual switch-case functionality. The alt() function is used to formulate alternative ‘case’ branches of the switch-case construct.