[R] symbolic iteration

Jin Shusong jinss at hkusua.hku.hk
Tue Jun 15 10:06:04 CEST 2004


Dear all,
  I have 122 vectors named from L1 to L122.  Now I hope to
take log to each of the series, say 
L1 <- log(L1)
...
L122<-log(L122)

Can anyone show me a iterative way to make the job simple.
I mean the way something like
for(i in 1:122){
  ...
}
or other similar methods.
Many thanks.


Jin




More information about the R-help mailing list