View source: R/HelperFunctions.R
head0 | R Documentation |
Set all entries of the given vector to 0 up until index 'start'
head0(v, start = 0)
v |
the vector to modify |
start |
how many leading elements to zero out |
the vector v
with the first start
elements replaced by 0.
head0(1:10, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.