cf.sloc.adjust <- function(soil.profile){
i=!is.na(soil.profile$layer$SLCF)
coarse = soil.profile$layer$SLCF[i]
sloc = soil.profile$layer$SLCF[i]
sloc = sloc*(1-coarse/100)
soil.profile$layer$SLOC[i]=sloc
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.