[R] replicate a grob n times

From: baptiste auguie <baptiste.auguie_at_googlemail.com>
Date: Wed, 16 Jun 2010 14:52:20 +0200


Dear all,

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

require(grid)
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.

Regards,

baptiste



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 16 Jun 2010 - 13:18:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jun 2010 - 13:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive