average_ghi_sensors: Average GHI Sensors

Description Usage Arguments Details Value Examples

View source: R/sms_functions.R

Description

Average redundant ghi sensors of onsite dataframe

Usage

1
average_ghi_sensors(sms_flagged)

Arguments

sms_flagged

An sms dataframe with tidy variables

Details

If there are 3 or more sensors, conduct a straight average at each datapoint, ignoring missing data. If there are only 2 sensors, create a reconstructed average, by applying the monthly bias between the two sensors to reconstruct any missing data points before averaging.

Value

sms_flagged with an additional variable ghi_ave

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## To Prepare sms_flagged dataframe for megaframe compliation:
sms_flagged %>%
  filter_sms() %>%
  average_ghi_sensors() %>%
  average_data_to_hourly() %>%
  format_sms_vars_for_megaframe()

## End(Not run)

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