Skip to content
Prev 373069 / 398500 Next

consolidate three function into one

That is certainly OK, but you can also just use

print(ggsurvplot(...))

as your final statement.

out <- RFS( ...)

would then return the ggsurvplot object *and* graph it.

Any good R tutorial or a web search will provide more details on function
returns, which you might find useful.


Cheers,
Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Jan 15, 2018 at 9:57 AM, Ding, Yuan Chun <ycding at coh.org> wrote: