Initial thought was that in utilityFunctions.R, formatRequest() and formatWxObservations() could benefit from replacing
for (i in 1:paramCount) with lapply() syntax.
After quick research, would still have to traverse sublists, so not saving many lines of code. The apply() approach would likely be faster, but speed is not a limiter in the Toolkit as of yet.
Initial thought was that in utilityFunctions.R,
formatRequest()
andformatWxObservations()
could benefit from replacingfor (i in 1:paramCount)
withlapply()
syntax.After quick research, would still have to traverse sublists, so not saving many lines of code. The
apply()
approach would likely be faster, but speed is not a limiter in the Toolkit as of yet.Research: see code below and Using R to download and parse JSON