Oops, there where some typos / thinkos in my post,
in the "more sophisticated" tryCatch() example.
I append the full message with corrected example.
--
Martin
---
> "RT" == Rolf Turner <[EMAIL PROTECTED]>
> on Wed, 14 Ma
> "RT" == Rolf Turner <[EMAIL PROTECTED]>
> on Wed, 14 May 2008 13:12:02 +1200 writes:
RT> I have written a function which reads data from files using read.delim
RT> ().
RT> The names of these files are complicated and are built using arguments
RT> to the wrapper funct
> -Original Message-
> From: [EMAIL PROTECTED] on behalf of Rolf Turner
> Sent: Tue 5/13/2008 6:12 PM
> To: R help forum
> Subject: [R] The try() function with read.delim().
>
>
> I have written a function which reads data from files using read.delim
> ().
I have written a function which reads data from files using read.delim
().
The names of these files are complicated and are built using arguments
to the wrapper function. Since the files in question may or may not
exist, I thought to enclose the read.delim() call in a try():
file <-
4 matches
Mail list logo