initUnitsVariable = function(variable, data){
newData = variable$routines$sampleUnits$runInit(data = data)
return(newData)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.