Thank you! Worked perfectly! By the way: What was wrong with my original code? -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-lapply-tp4678290p4678305.html Sent from the R help mailing list archive at Nabble.com.