[R] Rearranging sub-folders, how?
Jim Lemon
drjimlemon at gmail.com
Sat Oct 1 14:07:51 CEST 2016
Hi Kristi,
I assume that B, C and D are not empty, otherwise the answer is trivial.
create a directory under B named D
move the contents of the old D to the new D
delete the directory E beneath the new D
create a new directory C under the new D
move the contents of the old C to the new C
recursively delete D under the new C
move the old E under the new C
recursively delete the old C
Jim
On Sat, Oct 1, 2016 at 9:29 PM, Kristi Glover <kristi.glover at hotmail.com> wrote:
> Hi R user,
>
> I was wondering how we can rearrange the folders in R. for example
>
> original data has been put with the following arrangement:
>
> foldA\subFoldB\subFoldC\subFoldD\subFoldE\
>
>
> SubFoldE contains several dataset
>
>
> I want to rearrange the subFoldE into following sequence:
>
>
> foldA\subFoldB\subFoldD\subFoldC\subFoldE\
>
>
> Any suggestions?
>
> Thanks
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list