[R] Suppressing printing in the function

Phil Spector spector at stat.berkeley.edu
Sat Oct 2 00:30:18 CEST 2010


?invisible
 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu


On Fri, 1 Oct 2010, Dimitri Liakhovitski wrote:

> Hello!
>
> I wrote a function that returns a data frame. Nowhere in the function
> do I say print(my.data.frame), but when I run the function - the data
> frame is printed on the console.
> Is there any way to suppress it?
>
> Thank you!
>
> -- 
> Dimitri Liakhovitski
> Ninah Consulting
> www.ninah.com
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list