[R] simple for loop

Stephan Holl sholl at gmx.net
Sat Nov 16 08:42:00 CET 2002


At Fri, 15 Nov 2002 20:34:28 -0500 Liaw, Andy wrote:

Hello Andy,

> Try this inside your loop:
> 
> if (dim(get(i))[1] == 0) rm(list=i)
this works so far, but could you please give my a hint what I did wrong?
what does the get() do ?

I was struggeling inside some other for loops, and it seems that there
was another get() missing.
So do I have to use the get() always inside a loop in order to "get" the
correct i-values pasted in ?

Thank you
cheers
  Stephan

-- 
Stephan Holl

GnuPG Key-ID: 11946A09
ICQ# 117277975 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20021116/87156014/attachment.bin


More information about the R-help mailing list