Displaying 1 result from an estimated 1 matches for "objnamem".
Did you mean:
objname
2010 Nov 24
1
diverting output from nested loops
Dear List,
I have a series of nested loops with the structure shown below, and I am
struggling to figure out how to divert output to folders created with
dir.create() within the loops.
What I need is for the output to end up as topNameK/subNameL/objNameM.pdf;
what I get instead is a series of directories topNameK/, directories
subNameL/, and files objNameM.pdf, all in the working directory. Any hints
on how to do this will be much appreciated!
Many thanks in advance,
Lara
for (K in ...){
... create object ...
topDirName <- as.chara...