tidy_groundwork: Tidy Groundwork Data Frame

Description Usage Arguments Details Value Examples

View source: R/sms_functions.R

Description

This function tidies imported Groundwork data of onsite measurements by selecting only the relevant variables and renaming them to a standard convention.

Usage

1
tidy_groundwork(groundwork_df)

Arguments

groundwork_df

The groundwork dataframe

Details

Variable naming convention: datetime, month, year, ghi1, ghi2, ghi3, ws, temp, ghi1_flag, ghi2_flag, ghi3_flag, ws_flag, temp_flag

Value

A dataframe that includes all of the raw groundwork data and flags that can be used for filtering

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
## Get the files to import
sms_files <- paste0('data/Groundwork/', dir(path = "data/Groundwork/", pattern = "*.csv"))

## Import the files
groundwork_df <- import_groundwork_files(sms_files)

## Tidy the Dataframe
tidy_sms <- tidy_groundwork(groundwork_df)

## Flag the Dataframe
sms_flagged <- flag_sms(tidy_sms)


## End(Not run)

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