1 / 7

R Skills Sharing: Aggregating Sensor Data and Importing to B3

R Skills Sharing: Aggregating Sensor Data and Importing to B3 . Jake Zwart GLEON FP – Sunapee, NH 2013-01-14. Overview of aggregate() and loadB3(). aggregate() splits data into subsets of data based on a list, applies a function to each subset, and returns results.

abbott
Download Presentation

R Skills Sharing: Aggregating Sensor Data and Importing to B3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. R Skills Sharing: Aggregating Sensor Data and Importing to B3 Jake Zwart GLEON FP – Sunapee, NH 2013-01-14

  2. Overview of aggregate() and loadB3() • aggregate() splits data into subsets of data based on a list, applies a function to each subset, and returns results. • Importing to B3 function: writes .csv file that in correct format for B3 importing.

  3. Relevance • Aggregate example: There is temperature data every 5 minutes, but you want daily average. Transform dateTime into date and use: aggregate(temp, by=list(date),FUN=mean) • Way more efficient than using for loops • loadB3() writes correctly formatted .csv file for B3, so you don’t have to mess around with excel

  4. Application • Lake metabolism data unit conversion • Needed daily Zmix data to convert to areal units • loadB3() – lots of files to import into B3 from lake metabolism survey • Challenges • B3 is picky about formatting • User needs to know R date/time syntax

  5. Results • BA_2012sonde B3input.csv

More Related