View source: R/makestretchid.R
getstretchid | R Documentation |
make a stretch id from a date or something
getstretchid(stretches)
stretches |
a numeric or character vector to convert into a stretchid |
i do this all the time, but probably there is a cleverer pattern where you don't need to do it that i don't know about
a stretchid numeric vector starting at 1
# consider a date vector v1 <- c("2019-01-01", "2019-01-01", "2019-01-02", "2019-01-03") # get the stretches getstretchid(v1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.