check <- function(x) {
if (x > 0) {
result <- "Positive"
}
else if (x < 0) {
result <- "Negative"
}
else {
result <- "Zero"
}
return(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.