[R] simple for loop

Stephan Holl sholl at gmx.net
Fri Nov 15 23:30:33 CET 2002


Dear list.
I cannot manage to select all data.frames, which have no data inside.
names <- c("data.fame1", "data.fame2","data.fame4","data.fame4")

for (i in names)
{
ifelse(dim(i)[1]==0, rm(i))
}

perhaps anybody could help
thank you.

-- 
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/20021115/a9e41357/attachment.bin


More information about the R-help mailing list