bogdan romocea wrote:
> A simple function will do what you want, customize this as needed:
> lprint <- function(lst,prefix)
> {
> for (i in 1:length(lst)) {
> cat(paste(prefix,"$",names(lst)[i],sep=""),"\n")
> print(lst[[i]])
> cat("\n")
> }
> }
> P <- list(A="a",B="b")
> lprint(P,"Prefix")
I thought that there is a way to 'setup' print.
Thanks.
ld.
______________________________________________
[email protected] 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.