select_init_df: Generate Initial Dataframe for power_loss_bat

Description Usage Arguments Value Examples

View source: R/tpk-read_data.R

Description

The power_loss_bat function makes use of a dataframe containing the first several days of psuedo-IV curves. This function creates that dataframe for the user from the raw dataframe containing IV Curve measurement data.

Usage

1
select_init_df(df_raw, days = 21)

Arguments

df_raw

The raw dataframe containing request input columns the same as the example df_wbw dataset and the column of day, which starts from 1 and column of n_period, which is the index of the period, decided by how many days to be grouped as one period, the column of day and n_period can be generated from the function read_df_raw

days

The number of initial days to subsample. Default: 21

Value

Subset of input dataframe within the first several days decided by the input parameter "days".

Examples

1
2
df <- read_df_raw(df_wbw, 1, 7)
df_init <- select_init_df(df, days = 21)

SunsVoc documentation built on April 30, 2021, 5:07 p.m.