Open discoleo opened 1 year ago
The first image (on page 2) could also benefit from this function:
I have enhanced in the meanwhile the initial format.time function:
The latest code can be found on my GitHub page, see: https://github.com/discoleo/R/blob/master/Stat/Tools.DateTime.R
Important advantage of format.time over formatTime or format_time:
methods(format)
Since these time-formatting steps in the vignetted have been moved into make_example (#132), the utility of implementing this is now very limited
Helper Function: format.time
The vignette Importing and Formatting Data starts with a lot of boiler-plate code, including: paste("Plate1-", paste(example_widedata_noiseless$Time %/% 3600, formatC((example_widedata_noiseless$Time %% 3600) %/% 60, width = 2, flag = 0), formatC((example_widedatanoiseless$Time %% 3600) %% 60, width = 2, flag = 0), sep = ""), ".csv", sep = "")
The time-formatting code could be moved to a helper function inside the package:
Note:
R Code