Function adjust sign of a number based on a given limitation (sign_type). Sign type can be of different values: "Any" (no adjustment applied), "Not negative" / "Not Positive" (if number is negative / positive then it is replaced with 0), "Flip Negative" / "Flip Positive" (if number is negative / positive then it is multiplied by -1)
1 2  | validateSign(number, sign_type = c("Any", "Not Negative", "Not Positive",
  "Flip Negative", "Flip Positive"))
 | 
number | 
 is a number to be validated and adjusted  | 
sign_type | 
 sign type / limitation that should be applied  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.