patch=function(inputvector){sapply(1:length(inputvector),function(i){ifelse(!is.na(inputvector[i]),inputvector[i],
inputvector[max(which(!is.na(inputvector))[which(!is.na(inputvector))<i])])})}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.