Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "R Skills Sharing: Aggregating Sensor Data and Importing to B3 Jake Zwart GLEON FP – Sunapee, NH 2013-01-14."— 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

6

7


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

Similar presentations


Ads by Google