search for: rocquce_rwl

Displaying 2 results from an estimated 2 matches for "rocquce_rwl".

2008 Jun 25
1
a loop....
...NA NA NA 1998 NA NA NA NA NA NA 1999 NA NA NA NA NA NA 2000 NA NA NA NA NA NA > OK.... the loop work... Now I want to replace the NA with 0 in the data.frame (cimfasy_rwl, rocquce_rwl, ecc...) > files_rwl <- ls(pattern="_rwl$") > files_rwl [1] "cimfasy_rwl" "rocquce_rwl" > for (i in files_rwl) assign(gsub("\\_rwl$", "", i), i[is.na(i) ] <- 0) > ls() [1] "cimfasy" "cimfasy_rwl" "fil...
2008 Jun 27
2
NA value
...NA NA NA 1998 NA NA NA NA NA NA 1999 NA NA NA NA NA NA 2000 NA NA NA NA NA NA > files_rwl <- ls(pattern="_rwl$") > files_rwl [1] "cimfasy_rwl" "rocquce_rwl" > for (i in files_rwl) assign(i,i[is.na(i)] <- 0) > ls() [1] "cimfasy_rwl" "files_rwl" "files.rwl" "i" "rocquce_rwl" > > cimfasy_rwl [1] 0 > Thanks in advance, Alfredo