| mbm_resample | R Documentation | 
This function resamples data from a given dataframe. Dataframe must have columns created through plr_cleaning to denote time segments
mbm_resample(df, fraction, by)
df | 
 dataframe  | 
fraction | 
 fraction of data to resample from dataframe  | 
by | 
 timescale over which to resample, day, week, or month  | 
Returns randomly resampled dataframe
# build var_list
var_list <- plr_build_var_list(time_var = "timestamp",
                               power_var = "power",
                               irrad_var = "g_poa",
                               temp_var = "mod_temp",
                               wind_var = NA)
# Clean Data
test_dfc <- plr_cleaning(test_df, var_list, irrad_thresh = 100,
                         low_power_thresh = 0.01, high_power_cutoff = NA)
                         
dfc_resampled <- mbm_resample(test_dfc, fraction = 0.65, by = "week")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.