read_groundwork: Import and Tidy Groundwork Onsite Data

Description Usage Arguments Details Value Examples

View source: R/sms_functions.R

Description

Import Groundwork QC Data CSVs into a single dataframe with clean variable names

Usage

1
read_groundwork(sms_files)

Arguments

sms_files

A list of Groundwork CSVs to import

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 containing all of the raw onsite data and flags that can be used to apply filters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
## Read in a list of files
sms_flagged <- read_groundwork(c('SiteDecember2019QCData.csv', 'SiteJanuary2020QCData.csv'))
head(sms_flagged)

## Read in a single file
sms_flagged <- read_groundwork('Site2019QCData.csv')

## Read in all files in a folder that end in csv
sms_files <- paste0('data/Groundwork/', dir(path = "data/Groundwork/", pattern = "*.csv"))
sms_flagged <- read_groundwork(sms_files)
summary(sms_flagged)

## End(Not run)

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