On 20 August 2014 at 14:30, Sven E. Templer wrote: | Is there an easier way that I am missing, than to use switch/TYPEOF ...? No because R is a dynamically-typed language and we will only know at run-time what you are passing down. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org