Re: [R] Supressing printing from a function: ecdf

2008-07-15 Thread tolga . i . uzuner
PROTECTED] To Patrick Burns <[EMAIL PROTECTED]> cc [EMAIL PROTECTED], r-help@r-project.org Subject Re: [R] Supressing printing from a function: ecdf Hello Since the summary.ecdf function first do a "cat", and then calls summary(knots(object),...) , I guess you will obtain the s

Re: [R] Supressing printing from a function: ecdf

2008-07-15 Thread Ivar Herfindal
Hello Since the summary.ecdf function first do a "cat", and then calls summary(knots(object),...) , I guess you will obtain the same result without the printing, by just use the latter part of the summary.ecdf function like this: a <- summary(knots(ecdf(rnorm(100["1st Qu."] Hope this he

Re: [R] Supressing printing from a function: ecdf

2008-07-15 Thread Prof Brian Ripley
On Tue, 15 Jul 2008, Patrick Burns wrote: If you do: getAnywhere('summary.ecdf') you will see the 'cat' statement that is doing the printing that is annoying you. It seems to me that a better definition of the function would have an argument called something like 'verbose' that controlled if

Re: [R] Supressing printing from a function: ecdf

2008-07-15 Thread Patrick Burns
If you do: getAnywhere('summary.ecdf') you will see the 'cat' statement that is doing the printing that is annoying you. It seems to me that a better definition of the function would have an argument called something like 'verbose' that controlled if the 'cat' statement was executed. I'm not s

[R] Supressing printing from a function: ecdf

2008-07-15 Thread tolga . i . uzuner
Dear R Users, I am trying to suppress the information printed by the ecdf function during an assignment. Various alternatives have failed me so far: > a=summary(ecdf(rnorm(100)))["1st Qu."] Empirical CDF:100 unique values with summary > invisible(a=summary(ecdf(rnorm(100)))["1st Qu."]) Empir