to my mind, an "eval(parse(..))" construct is in most cases not necessary and should be avoided, as is discussed here http://stackoverflow.com/questions/13649979/what-specifically-are-the-dangers-of-evalparse
Alright. In continuation to my above post, the within method works if we explicitly state the field name in the command, as below:
> str(addWeekDay(orders, orders$Order.Date))
This is not really to my liking because the usage is not flexible.,Like my original function or Michael Moffat ' s method - one should be able to either supply the column name or column number.
I like Michael Moffat 's method - but would prefer a single line direct return mechanism like Eik Vettorazzi 's, so mixed and matched and finally this is my solution:
addWeekDay str(addWeekDay(orders, 'Order.Date'))
> str(addWeekDay(orders, 2))
both works fine (where 2 is column number).
Thank you all for the help. I have Upvoted all answers.