William Dunlap tibco.com> writes:
>
> But it fails on this:
> > my_names <- c("Bill", "William")
> > display(rev(my_names))
> rev(my_names) = Error in cat(list(...), file, sep, fill, labels,
> append) :
> argument 3 (type 'list') cannot be handled by 'cat'
> This is because you call ev
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Hans W Borchers
> Sent: Friday, January 14, 2011 8:55 AM
> To: r-h...@stat.math.ethz.ch
> Subject: [R] Help on a Display function
>
> >
> I wanted
>
I wanted to simulate the Matlab DISPLAY function for some time now.
After seeing a recent proposal by Gabor Grothendieck I came up with the
following solution,
display <- function(...) {
my_names <- lapply(substitute(placeholderFunction(...))[-1], deparse)
for (my in my_names) cat(my, "=",
3 matches
Mail list logo