Re: [R] Suppress intermediate results on console

From: Jonathan Daily <biomathjdaily_at_gmail.com>
Date: Thu, 26 May 2011 15:10:27 -0400

Well, since we have no idea what x is, that is going to be hard to do. Are you calling summary because you want the info on the last iteration of a loop? If so, just put the summary call outside the loop. Otherwise, why are you calling summary if you don't want a summary?

Also, the posting guide requests a reproducible example, so please provide one in the future.

Jon

On Thu, May 26, 2011 at 2:30 PM, Lisa <lisajca_at_gmail.com> wrote:
> Dear all,
>
> I have a question about how to suppress intermediate results in a function
> on console. For example, I will use summary() in my own function that looks
> like:
>
> myfunction <- function(…)
> {
>  …
>  Summary(x)
>  …
> }
>
> Then myfunction() will print “x” on console that is intermediate result and
> doesn’t need showing.
>
> Does someone have any idea or any suggestion? Thank you in advance.
>
> Lisa
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Suppress-intermediate-results-on-console-tp3553276p3553276.html
> Sent from the R help mailing list archive at Nabble.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.
>

-- 
===============================================
Jon Daily
Technician
===============================================
#!/usr/bin/env outside
# It's great, trust me.

______________________________________________
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 Thu 26 May 2011 - 19:12:17 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Thu 26 May 2011 - 20:40:10 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