spat.sub<-function(x,theta){ xx<-x for(i in 1:ncol(x))xx[,i]<-x[,i]-theta[i] xx<-xx^2 temp<-sqrt(apply(xx,1,sum)) val<-mean(temp) val }

Any scripts or data that you put into this service are public.

Add the following code to your website.

REMOVE THIS Copy to clipboard

For more information on customizing the embed code, read Embedding Snippets.