read_cpr: Read CPR CSVs into a list of tidy dataframes

Description Usage Arguments Details Value Examples

View source: R/satellite_functions.R

Description

Reads in a list of Clean Power Research Time Series Files and returns a list of data frames named after each model version and formatted to be integrated with a Megaframe.

Usage

1
read_cpr(cpr_files)

Arguments

cpr_files

A list of strings that provide a path to each CPR Timeseries CSV.

Details

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

Value

A list of tidy data frames (technically tibbles), named after the CPR model version

Examples

1
2
3
4
5
6
7
8
## Not run: 
cpr_list <- read_cpr(c('path/to/cpr32.csv', 'path/to/cpr33.csv', 'path/to/cpr34.csv'))
head(cpr_list$cpr3.3)

cpr_list <- read_cpr('cpr34.csv')
head(cpr_list$cpr3.4)

## End(Not run)

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