BoulderCodeHub / RWDataPlyr

R package to read and manipulate data from RiverWareTM
3 stars 5 forks source link

Mine slots and timestep from all rdfs #102

Open rabutler-usbr opened 5 years ago

rabutler-usbr commented 5 years ago

Given a directory, read in all rdf files, and record the timestep of the rdf file, all slots in the file, and the size of the rdf file.

This would allow you to determine the smallest rdf file to read from, or compare where files reside in two different runs.

dirs: a vector of directories to mine. 
rdfs: optional, if NULL will mine all rdf files, if specified, only mines the specified files
rdf_mine(dirs, rdfs = NULL)

Returns df/tibble: dir | rdf | timestep | size | slot


One ex: specify one rdf file for two directories and then use dplyr to see if all the slots exist in both.