@affableambler

Explicit loops (e.g. for) are inefficient and should not be used if it's
possible.
unlist(lapply(...)) is safer than sapply(...)

I posted the lapply version, because if the result should be used within a
data.table, the right handside (right from :=) should be a list.

~g



--
View this message in context: 
http://r.789695.n4.nabble.com/How-to-produce-variations-of-a-text-tp4726153p4726160.html
Sent from the datatable-help mailing list archive at Nabble.com.
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to