[R] replicate a grob n times

baptiste auguie baptiste.auguie at googlemail.com
Wed Jun 16 14:52:20 CEST 2010

Dear all,

I use the following to create a list of identical grobs,

rep.grob <- function(g, n){
 replicate(n, g, simplify=FALSE)

This approach suffers two problems:

1- R CMD check is not happy about the S3-like name. How can / Should I
make this a real S3 method?

2- I don't know if this is the most efficient way to do it.

Suggestions are welcome.



More information about the R-help mailing list