validate_domain_score | R Documentation |
This function checks whether a CAPL-2 domain score is numeric and within a valid range.
validate_domain_score(x = NA, domain = NA)
x |
A vector representing a CAPL domain score. |
domain |
A character vector representing domains within CAPL (valid values are "pc", "db", "mc", "ku"; valid values are not case-sensitive). |
Other capl
functions called by this function include: validate_number()
and validate_integer()
.
Returns a numeric vector (if valid) or NA (if not valid).
validate_domain_score( x = c(34, 15, 10, 12.5, 25), domain = "pc" ) # [1] NA 15.0 10.0 12.5 25.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.