View source: R/reScaleSampleSPx.R
reScaleSampleSPx | R Documentation |
Rescale and resample all snow profiles provided in a list to an identical snow height and resampling rate.
reScaleSampleSPx(SPx, resamplingRate = 0.5, scHeight = median, ...)
SPx |
list of |
resamplingRate |
resampling rate, units in centimeters |
scHeight |
a function that calculates the resulting height from the profiles, default |
... |
arguments passed on to the function provided in |
A list with the first entry $set
storing the rescaled and resampled profile list, the second entry
$maxHS
stores the maximum snow height found among the profiles
fherla
## let's take the 'SPgroup' object as profile list
SPrr <- reScaleSampleSPx(SPgroup)
print(paste0("max height before rescaling: ", SPrr$maxHS, " cm"))
print(paste0("rescaled height: ", SPrr$set[[1]]$hs, " cm"))
plot(SPrr$set, SortMethod = 'unsorted')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.