[Rd] Resume processing after warning handler.

2012-02-04 Thread Titus von der Malsburg
Dear list! I have a script that processes a large number of data files. When one file fails to process correctly, I want the script to write a message and to continue with the next file. I achieved this with tryCatch: for (f in files) tryCatch({heavy.lifting(f)}, error=function(e)

Re: [Rd] Is the link to the R wiki down?

2012-02-04 Thread Philippe Grosjean
Hello, I am the guilty! I am changing the wiki server... but cannot get that name resolution to work. The R wiki is now served at http://rwiki.sciviews.org. I still have to solve translation into http://wiki.r-project.org. Best, Philippe Grosjean On 03/02/12 16:55, Tal Galili wrote: I am

Re: [Rd] Resume processing after warning handler.

2012-02-04 Thread Martin Morgan
On 02/03/2012 02:49 AM, Titus von der Malsburg wrote: Dear list! I have a script that processes a large number of data files. When one file fails to process correctly, I want the script to write a message and to continue with the next file. I achieved this with tryCatch: for (f in files)

[Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-04 Thread Martin Maechler
The help has Description: 'nrow' and 'ncol' return the number of rows or columns present in 'x'. 'NCOL' and 'NROW' do the same treating a vector as 1-column matrix. and x: a vector, array or data frame I'm proposing to extend these two convenience functions to also work

Re: [Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-04 Thread Hadley Wickham
On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: The help has Description:   'nrow' and 'ncol' return the number of rows or columns present in 'x'.   'NCOL' and 'NROW' do the same treating a vector as 1-column matrix. and   x: a vector, array or data

[Rd] Reading a Fixed-Width File with SAS import instructions directly into an R data frame

2012-02-04 Thread Anthony Damico
Hi everyone, I'm wondering if anyone has written (or knows of) an R function that takes the SAS import code to read in an ASCII / fixed-width data file.. and then parses out the SAS code to figure out how to structure a (foreign package) read.fwf command so that fixed-width data file can be read