Description Usage Arguments Value
Replaces query dates with a vector of dates specified by the user. Function will error if length(dates) is not the same as dates found by find.dates.
1 2 3 | replace.dates(text, dates, date.reg = "\\d+[/-]\\d+[/-]\\d+",
text.split = function(x) x %>% as.character %>% strsplit(" ") %>%
unlist, text.combine = function(x) paste(x, collapse = " "))
|
text |
- query as a single character string |
dates |
- a vector of dates to replace in the query. Function will error if length(dates) != length(find.dates(text,T)) |
Function returns the original query text, but with the new dates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.