Sunday, April 15, 2018

R is Such a Fun Letter

I might identify it as a letter, but I am actually referring to the R statistics environment, something I taught myself to use a bit more than a year ago, and continue to put find new ways to use it and learn more.
This past week I did a number of things with it, including putting together some complex graphs. Had to fight with it to get what I wanted, but once I had the results, and threw in some more data, I think I see a pattern that is intriguing, at least to me. Still have a lot more data to collect, but what I have at least serves to develop the scripts I will use.
Something else I figured out how to do just today makes one step of processing the heart-rate data I collect easier. For the Body on Games videos, I keep the recorded data and upload the CSVs for people to view, if they are interested. To help look at the data, I make a column that shows the time in the video the specific measurement is for (helps the measurements are made every second). Have I have been doing this involves loading up Excel, typing in a couple entries, and dragging the pattern down. I figured there had to be a way to do it in R, which I already use to generate a graph and histogram data, and again I had to fight some, but ultimately ended up with a script to do the job for me. It is just so much more convenient this way. The reason I had to fight with R is because of the, to me, convoluted way it handles time, always requiring a data. All I wanted was a hh:mm:ss sequence starting from zero and counting up by one second, but that is not something it wants to do. I figured it out though and am glad I did if only because I enjoy finding ways to move away from Office and Office-like software to more powerful, if more complicated/hard to use, FOSS solutions.

No comments:

Post a Comment