Great! That works perfectly sense. Thanks a lot! -- View this message in context: http://r.789695.n4.nabble.com/How-to-define-a-variable-in-a-function-that-another-function-uses-without-using-global-variables-tp4307604p4307715.html Sent from the R help mailing list archive at Nabble.com.