[R] Printing upon calling a function
jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Mon Nov 30 09:23:56 CET 2020
Answering you is also a burden without the reprodicible code. I'll pass on that.
But I will say that mixing analysis with output in the same function is a terrible habit. Come to the functional side of coding... it is much more re-usable here.
On November 30, 2020 12:14:35 AM PST, Steven Yen <styen using ntu.edu.tw> wrote:
>I hope I can get away without presenting a replicable set of codes
>because doing so would impose burdens.
>I call a function which return a data frame, with the final line
>In one case the data frame gets printed (similar to a regression
>printout), with simply a call
>In another case with a similar function, I could not get the results
>printed and the only way to print is to do the following:
>This is a puzzle, and I hope to find some clues. Thanks to all.
>My function looks like the following:
>me.oprobit0 <- function(obj,mean=FALSE,vb.method,jindex=NA,
>return(out) # out is a data frame
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.
Sent from my phone. Please excuse my brevity.
More information about the R-help