title: R: Unzip several files, each in new subdirectory or rename
body: <p>I managed to adapt some code to unzip many files.
  However, when unzipping, files with the same name appear to
  be replaced.</p>
  
  <p>In my working directory, I have .zip files.
  I created a new folder in that directory called unzip,
  in which I unzipped the files.</p>
  
  <p><code>dir.create(paste0(path, "/unzip/"))</code></p>
  
  <p><code>ldply(.data = list.files(path = path, pattern = ".zip", full.names = T), .fun = unzip, exdir = paste0(path, "/unzip"), overwrite = FALSE)</code></p>
  
  <p>As each of the .zip file has the same architecture, files will get replaced. My question: 
  1) Is there a way to specify that each file should be renamed if double?
  2) Other way round would be to specify that in the unzip folder, for each .zip file, a new folder would be created in which the corresponding file is unzipped.</p>
  
  <p>THX</p>