strip.na <-
function (x, xcheck = as.factor(x))
{
if (all(is.na(xcheck)))
return(NULL)
bad.stuff <- is.na(xcheck) | xcheck == -Inf | xcheck == "NaN"
return(x[!bad.stuff])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.