Nothing

```
myMatch <- function(p,x,tol=10e-6){
ind <- NA
i <- 1
while(i <= length(x)){
if(abs(p-x[i])<tol){
ind <- i
i <- length(x)+1
}
else i <- i+1
}
return(ind)
}
```

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

Embedding an R snippet on your website

Add the following code to your website.

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