Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. from.dir <- "J:/Radar_data/Beit_Dagan/RAW/2018"
  2. ## I want only the files from the night
  3. to.dir <- "J:/Radar_data/Beit_Dagan/night"
  4. files <- list.files(path = from.dir, full.names = TRUE, recursive =
  5. TRUE)
  6. ## night_files is a vector I created with the files I need - only during
  7. the night
  8. for (f in night_files) file.copy(from = f, to = to.dir)
  9.  
  10. [1] "J:/Radar_data/Beit_Dagan/H5/2018/03/10/TLV180310142554.h5"
  11. [2] "J:/Radar_data/Beit_Dagan/H5/2018/03/10/TLV180310142749.h5"
  12. [3] "J:/Radar_data/Beit_Dagan/H5/2018/03/10/TLV180310143054.h5"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement