[R] How to convert numbers to words?

2009-09-14 Thread Derek Norton
I am trying to convert numbers to English words, e.g. 123 -> One hundred twenty three. After some searching, I have been unable to find any info on this. I could certainly write code to do it, but my question is this: Does anyone know of a function that does this? Thanks, Derek McCrae Norton __

Re: [R] batch process file in R

2009-03-12 Thread Derek Norton
If these are the only files in the directory, then you might try... (File paths will need to change if the folder "200209" isn't in the working directory) fpath <- "./200209" a <- list.files(fpath) for(i in 1:length(a)){ assign(paste("y",i,sep=""),read.table(paste(fpath,a[i],sep="/"))) } Ano