plr_variable_check: Define Standard Variable Names

View source: R/data_cleaning.R

plr_variable_checkR Documentation

Define Standard Variable Names

Description

The method determines the variable names used by the input dataframe. It looks for the following labels:

  • power_var <- iacp; if not, sets to idcp

  • time_var <- tmst; if not ,sets to tutc

  • irrad_var <- poay; if not, sets to ghir

  • temp_var <- temp; if not, sets to modt

  • wind_var <- wspa; if applicable, else NULL

This function assumes data is in a standard HBase format. If you are using other data (as you most likely are) you should use the companion function, plr_build_var_list.

Usage

plr_variable_check(df)

Arguments

df

A dataframe containing pv data.

Value

Returns a dataframe containing standard variable names (no data). It will not include windspeed if the variable was not already included. This is frequently an input of other functions.

Examples

var_list <- plr_variable_check(test_df)
 

PVplr documentation built on Feb. 16, 2023, 9:56 p.m.