An unfortunate bug in which.max: if all elements are NA, it doesn't return anything. This means that for any vector, which.max returns a vector of length 1 unless all are NAs. This is a silly error, since a program expecting an element of length 1 falls apart otherwise.
1 | which.maxNAs(v)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.