Displaying 1 result from an estimated 1 matches for "topdirnam".
Did you mean:
topdirname
2010 Nov 24
1
diverting output from nested loops
...opNameK/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.character(paste("topName", K, sep=""))
topDirMake <- dir.create(topDirName)
for (L in ...) {
subDirName <- as.character(paste("subName", L, sep=""))
subDirMake <- dir.create(subDirName)
... manipulate obje...