powered by
ibdprobs(x)
When a numeric vector is supplied (e.g. c(0,1,0)), the function checks the input for validity and returns the input; throws an error otherwise.
identical(ibdprobs("PO"),ibdprobs(c(0,1,0))) #TRUE
Run the code above in your browser using DataLab