Nothing
#' @rdname tau-utils
#' @description
#' \code{tau2type} guesses the type (\code{'s'}, \code{'h'}, \code{'hh'}) from the names
#' of \code{tau} vector; thus make sure \code{tau} is named correctly.
#' @export
#'
#'
tau2type <- function(tau) {
if (!("gamma" %in% names(tau))) {
tau["gamma"] <- 0
}
if (tau["gamma"] == 0) {
if (any(grepl("_l|_r", names(tau)))) {
type <- "hh"
} else {
type <- "h"
}
} else {
type <- "s"
}
return(type)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.