MSE_f<-function(func, op_v, dat){
try(if(class(func)!='function'){stop('argument to MSE_f(f) has to be a function')}
else{
m<-(sum((func(op_v)-dat[1,])^2))
return(m)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.