fill | R Documentation |
based on https://stackoverflow.com/a/13810615
fill(x, forward = TRUE, maxgap = Inf)
x |
an R object to be filled |
forward |
bool value, define filling direction |
maxgap |
Int value, define max fill gap |
x = c(NA,NA,'a',NA,NA,NA,NA,NA,NA,NA,NA,'b','c','d',NA,NA,NA,NA,NA,'e')
fill(x)
fill(x, forward = FALSE)
fill(x, maxgap = 4)
fill(x, maxgap = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.