R script for analysis of PreSens Respiration Data