h_addna | R Documentation |
Add NA values within a time series
h_addna(file, add)
file |
File name to proceed |
add |
List of dates with NA values to be added |
The function adds records with NA in a time series at given dates. If the date already exists, the value is replaced by NA
The output file is named with a nap_ prefix.
P. Chevallier - November 2022
## Not run:
f <- h_addna (f, add = c("2021-01-01 12:00:00 UTC", "2031-01-01 12:00:00 UTC"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.