filldown | R Documentation |
filldown vector with lead value
filldown(x, what = c("", NA))
x |
a vector |
what |
Values to be filled |
A vector with the same class as x
x=rep(1:5,each=3)
x=removeDup(x,NA)
filldown(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.