BoulderCodeHub / RWDataPlyr

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

For monthly data, month should be numeric, not string #20

Closed rabutler closed 6 years ago

rabutler commented 8 years ago

This will allow for data frame to be easily sorted in increasing order

rabutler commented 8 years ago

While this would likely make the data frame smaller, the csv file created by RiverWare uses full month names. May want to mimic that structure.

rabutler commented 7 years ago

should check how much memory it takes; could always (1) request CADSWES change that or (2) after reading it in to memory, change to numeric

rabutler commented 7 years ago

for a 112,488 row data frame created by getDataForAllScens() the data frame that uses characters for month is 4.95 MB, and this is reduced to 4.5 MB if the Month variable is stored as an integer.

~ 10% savings