I have written a function that contains runs
lm()
vif() and
glm()
When the glm() blows up with an error message, I don't get the output from
either the lm() or vf() even thought neither lm() nor vif() have any problems .
How can I force the function to print sequential results rather than
On 31/12/2009 9:29 AM, John Sorkin wrote:
I have written a function that contains runs
lm()
vif() and
glm()
When the glm() blows up with an error message, I don't get the output from
either the lm() or vf() even thought neither lm() nor vif() have any problems .
How can I force the function
On Dec 31, 2009, at 8:29 AM, John Sorkin wrote:
I have written a function that contains runs
lm()
vif() and
glm()
When the glm() blows up with an error message, I don't get the
output from either the lm() or vf() even thought neither lm() nor
vif() have any problems . How can I force the
Duncan,
Thank you, however, if you will look at my function (bottom of this Email
message), you will see that I have used print(). It appears that the print
function is not run until the entire function completes running.
John
John David Sorkin M.D., Ph.D.
Chief, Biostatistics and
John Sorkin wrote:
Duncan,
Thank you, however, if you will look at my function (bottom of this Email
message), you will see that I have used print(). It appears that the print
function is not run until the entire function completes running.
No, statements are run in the order you give
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of John Sorkin
Sent: Thursday, December 31, 2009 6:30 AM
To: r-help@r-project.org
Subject: [R] Obtaining partial output from a function that
does not run to completion.
I have
To heck with print(), use R's debugging capabilities instead:
trace ( minBMI, browser )
Be sure to ?trace and ?browser so you can figure out how to
interactively debug.
Eric
On 12/31/09 6:29 AM, John Sorkin wrote:
I have written a function that contains runs
lm()
vif() and
glm()
When
7 matches
Mail list logo