On Fri, 15 Aug 2014 06:22:53 AM Sohail Khan wrote: > Thanks Jim and Jorge, > Clever solutions, the final output is a list. > How do I covert it back a dataframe? > -Sohail > as.data.frame(newskdat) or for Jorge's as.data.frame(res) Jim