Re: [R] snowfall sfInit error

2008-12-12 Thread chibco
Thanks On Thu, Dec 11, 2008 at 10:19 AM, Jochen Knaus wrote: > Dear Mr. Ripley, > > indeed that it true. sfInit() currently have a bug on Windows depending on > the usage of the Linux tools and the broken Exceptionhandling. Too bad I > never tested it accordingly on Windows (as we do not have any

[R] snowfall sfInit error

2008-12-06 Thread chibco
Dear all, I am trying to execute the simple example in snowfall http://cran.r-project.org/web/packages/snowfall/vignettes/snowfall.pdf ... require(snow) require(snowfall) sfInit( parallel=TRUE, cpus=2 ) sfLapply( 1:10, exp ) sfStop() I have installed the snow and snowfall packages in R on a mach

Re: [R] Reading tables using a truncated name

2008-11-11 Thread chibco
Hi all, Thanks everyone for your advice. They have been helpful. Just for the record, I am using ... lapply(dir(path = filePath, pattern = "^test_"), function(x){read.table(file = paste(filePath, x, sep = ""), sep = ",", header = TRUE) } ) to load the files kind regards Chibisi On Tue, Nov

[R] Reading tables using a truncated name

2008-11-11 Thread chibco
Dear all, I am trying to read a bunch of csv files using read.table() that are named "test_xx.csv" where "xx" has no particular pattern. Is there a way of reading all the files by specifying a truncated file name e.g. "test_" with some wild card characters, or would I have to laboriously c