Alex Rivera | Logout

Suppress output of a function

Asked 2010-04-27T16:30:44.420
126

I'm looking to suppress the output of one command (in this case, the apply function).

Is it possible to do this without using sink()? I've found the described solution below, but would like to do this in one line if possible.

How to suppress output

r
Edit
Report

1 Answer

11

R only automatically prints the output of unassigned expressions, so just assign the result of the apply to a variable, and it won't get printed.

answered 2010-04-27T16:51:54.723

Your Answer