Polymorphism for R