select_init_df {SunsVoc} | R Documentation |
Generate Initial Dataframe for power_loss_bat
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
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
df <- read_df_raw(df_wbw, 1, 7)
df_init <- select_init_df(df, days = 21)
[Package SunsVoc version 0.1.2 Index]