search for: somepattern

Displaying 3 results from an estimated 3 matches for "somepattern".

2013 Sep 27
2
Error: C stack usage is too close to the limit when using list.files()
R-helpers: I'm running a file search on my entire drive (Mac OS X) using: files_found <- list.files(dir="/",pattern=somepattern,recursive=TRUE,full.names=TRUE) where somepattern is a search pattern (which I have confirmed via a unix "find / -name somepattern" only returns ~ 3 results). I keep getting an error: Error: C stack usage is too close to the limit when running this command. Any ideas on 1) how to fix...
2008 Oct 10
0
Antwort: FW: R loops
...Pugh" <rpugh@mango-solutions.com> 09.10.2008 14:06 An <assa.yeroslaviz@bayercropscience.com> Kopie Thema FW: [R] R loops Hi Assa, I happened to have some code on my screen that does exactly what you want: myDir <- "D:\\Temp" allFiles <- list.files(myDir) somePatterns <- c("xls", "csv", "sas7bdat") filePatterns <- lapply(somePatterns, function(pat, files) files[grep(pat, files)], files=allFiles) cat(paste("\n", somePatterns, ": ", sapply(filePatterns, paste, collapse=", "), sep="")) Ho...
2010 Mar 11
3
Define column names to a series of data.frames
...;) Works fine for one data.frame: column_names <- c("SDev", "PC1", "PC2", "PC3", "PC4", "PC5", "PC6") names( df1 ) <- column_names How is it to be done at once for all data.frames that the function objects(pattern = "SomePattern") can find? I've tried several things with assign, get, paste, for but I am not getting anywhere. I need to integrate this in a function that can handle lot's of data.frames and not only 6. Thank you, Nikos --- [1] I am stuck on this post: <http://www.mail-archive.com/r-help at...