Like this:

    for (i in files_rwl) {
         thisfile <- get(i)
         thisfile[is.na(thisfile)] <- 0
         assign(i, thisfile)
   }

It's likely that you could condense it, but using the long form makes it
clear what's happening.


Sarah

-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to