View source: R/bootstrap_block.R
bootstrap_block | R Documentation |
This function performs block bootstrapping on a given dataset.
bootstrap_block(data, k = 14)
data |
Data frame of raw data detrended if necessary. First column should be of the |
k |
Numeric vector of length one specifying the block length. Default is |
Dataframe containing th eblock bootstap sample.
#Boostrap the detrended data at site S-22
boot_df = bootstrap_block(S22.Detrend.df[,2:3])
#Calculate the mean of the drivers in bootstrapped sample
apply(boot_df,2,function(x) mean(x,na.rm=T))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.