Description Usage Arguments Details Value Examples
This function fills the gaps in a sequence of booleans.
1 | fill_gaps(x, n = 1)
|
x |
A vector of boolean. |
n |
A scalar integer specifying the length of gaps that we want to fill. |
If n = 1
, it will replace any TRUE FALSE TRUE
sequence by
TRUE TRUE TRUE
. If n = 1
, it will additionally replace any
TRUE FALSE FALSE TRUE
sequence by TRUE TRUE TRUE TRUE
and so on.
A vector of boolean of the same size as x
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.