add, sub, or

added additional R-type functions