Description Usage Arguments Value Functions Examples
View source: R/unroll_lagdays.R
Unrolls the lagdays of data.frames.
1 2 3 | unroll_physical_data(physical_data)
unroll_lagdays(df, n = 5)
|
physical_data |
list of river data (without hygiene) |
df |
data.frame of 2 columns: datum and var |
n |
numeric. unto to which day shall be lagged behind? |
Returns a list of data.frames for each variable. The data.frames contain the unrolled lagdays (with maxday = 5, length(df) == 17)
unroll_lagdays
: Internal usage mostly
1 2 3 4 | df1 <- data.frame(datum = rep("egal", 25), var = 1:25)
df2 <- data.frame(datum = rep("egal", 25), var2 = 51:75, var3 = 101:125)
unroll_lagdays(df1)
summary(unroll_physical_data(list(var1 = df1, var2 = df2)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.