[R] How to stop function printing unwanted output?

David Winsemius dwinsemius at comcast.net
Thu Aug 6 18:16:57 CEST 2009


On Aug 6, 2009, at 11:42 AM, Tymek W wrote:

> Hi,
>
> I want to use an output of one function (LSD.test) in other. How is it
> that while saving output from LSD.test to variable, it prints own
> output out?
>
> The function could be simplified to:
>
> fun <- function ( ... ) {
>    ...
>    lsd <- LSD.test(data[1], data[2], df, mse)
>   ...
> }
>
> In my example, I don't want LSD.test to print any output, I just want
> to use some of it later... How to stop it printing anything?

?invisible

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list