On Fri, Sep 12, 2008 at 6:02 AM, Antje <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I have a nested call of lapply in which I do a tryCatch statement like this
>
> lapply(1:length(p_names), function(w_idx) {
>r <- as.numeric(pos_r[[w_idx]][1])
>c <- as.numeric(pos_c[[w_idx]][1])
>
Hi there,
I have a nested call of lapply in which I do a tryCatch statement like this
lapply(1:length(p_names), function(w_idx) {
r <- as.numeric(pos_r[[w_idx]][1])
c <- as.numeric(pos_c[[w_idx]][1])
pos <- c(r,c)
lapply(1:length(p_names[[w_idx]]), function(p_idx,
:35 AM
Subject: Re: [R] tryCatch question
Read the argment descriptions and Look at the examples in ?tryCatch.
The `expr' argument (i.e. the code to try) and the `finally' argument
are expressions that are evaluated (via standard lazy evaluation of
arguments). The error condition handlers,
Read the argment descriptions and Look at the examples in ?tryCatch.
The `expr' argument (i.e. the code to try) and the `finally' argument
are expressions that are evaluated (via standard lazy evaluation of
arguments). The error condition handlers, provided as the `...'
argument in errorClass = h
I would like to use the 'tryCatch' function but am having a hard time getting
my head around it. In 'C' like languages try/catch/finally means try a block of
statements and if any throw an error then do the statements in the catch block
and then error or not always do the staements in the finall
5 matches
Mail list logo