I think you made it very clearly. thx -- View this message in context: http://r.789695.n4.nabble.com/How-to-transfer-the-variable-into-function-in-this-code-tp3899576p3901817.html Sent from the R help mailing list archive at Nabble.com.