Revision | e263e2550477845bafc9af3dfb8ae58f8bda0701 (tree) |
---|---|
Time | 2024-09-26 21:42:02 |
Author | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
I added a function to change a date into its url equivalent.
@@ -7660,3 +7660,10 @@ | ||
7660 | 7660 | } |
7661 | 7661 | |
7662 | 7662 | |
7663 | +transform_date_url <- function(date_str) { | |
7664 | + # Replace the slashes with "%2F" and prepend "=" | |
7665 | + result <- gsub("/", "%2F", date_str) | |
7666 | + result <- paste0("=", result) | |
7667 | + | |
7668 | + return(result) | |
7669 | +} |