Skip to content
Prev 374732 / 398513 Next

Using tryCatch in a for loop

No. If your ouput is a numeric "matrix", it cannot include alpha. Columns
in a data frame can be of different classes, but each column must be single
class.

and finally, of course, see ?cat -- I think you are misusing it. If you
simply want to return "somestuff", your function should be:

function(w) {"somestuff"}

not

function(w) {cat("somestuff")}

As usual, apologies if I have misunderstood. Caveat emptor.

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 Tue, May 22, 2018 at 1:11 PM, Bailey Hewitt <bailster at hotmail.com> wrote:

            

  
  
Message-ID: <CAGxFJbSUL7tnzL5Zb_0_V0jFiUNZi2=FrfEyaJgEASRgLQ7aOA@mail.gmail.com>
In-Reply-To: <YQXPR0101MB08058D7AB5E4A12F35E0352DD9940@YQXPR0101MB0805.CANPRD01.PROD.OUTLOOK.COM>