compile_megaframe: Build a Megaframe!

Description Usage Arguments Details Value Examples

View source: R/satellite_functions.R

Description

Compiles tidy sms, cpr, and vaisala data frames into one MEGAFRAME!

Usage

1
compile_megaframe(sms, cpr_list, vaisala_list)

Arguments

sms

Groundwork data that has been filtered, sensors have been averaged, and minute data has been averaged to hourly

cpr_list

Tidy CPR data

vaisala_list

Tidy Vaisala data

Details

Megaframe format includes hourly variables: datetime, year, month, ghi, dni, dhi, temp, ws, model

Value

A single dataframe that includes all of the sms, cpr, and vaisala timeseries data in a tidy format

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
## Prepare the inputs
sms_flagged <- read_groundwork('groundwork.csv')
sms <- prepare_sms_flagged_for_megaframe(sms_flagged)
cpr_list <- read_cpr(c('path/to/cpr33.csv', 'path/to/cpr34.csv'))
vaisala_list <- read_vaisala('path/to/vaisala213.csv')

## Create the Megaframe!
mf <- compile_megaframe(sms, cpr_list, vaisala_list)
head(mf)

## End(Not run)

btaute/powerResource documentation built on Sept. 4, 2020, 4:36 p.m.