Description Usage Arguments Value Author(s) See Also Examples
View source: R/DataPreparation.R
Expands a temporal data frame and fills values for missing dates.
1 2 3 4 5 6 7 8 9 10 11 |
data |
Data frame that will be expanded. |
expand |
Name of the variables that will be expanded. |
expandTo |
Defines whether values for the variables to be expanded will be filled for all dates or only those dates included in the data. |
valueColumns |
Name of the columns that are filled with specific values. |
latest_values |
If True missing values are filled with the latest known value until the next known value comes in. |
valueLevels |
Specific values that are used to fill the value columns. If latest_values = TRUE only values with no known values in the past of this values are specified with this specific values. |
timestamp |
Name of the column including the timestamp. This column should be in Date , YY-mm, YYYY-'W'ww, YYYY-mm, YYYY-'Q'q or YYYY format. |
timestampFormat |
Declares in which format the timestamp comes in (i.e., "day", "week", "month", "quarter", "year"). |
keepData |
Defines whether variables that will not be expanded should be kept. |
Returns the expanded data frame.
Leon Binder leon.binder@th-deg.de
Bernhard Bauer bernhard.bauer@th-deg.de
Michael Scholz michael.scholz@th-deg.de
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.