Skip to content
Prev 271991 / 398498 Next

troubles with a for loop

You don't have a variable named pd.memb.i

Instead, you need something like:
get(paste("pd.memb.", i, sep=""))

The error message you're getting, though, is because your
loop syntax is wrong:
for(i in 1:3) {
 do something
}

Sarah

On Sun, Sep 18, 2011 at 12:05 PM, Francesco Sarracino
<f.sarracino at gmail.com> wrote: