fac_label <- function(trait, method) {
out <- vector("character", trait + method)
for (i in 1:length(out)) {
if (i <= trait) {
out[i] <- paste0("t", i)
} else {
out[i] <- paste0("m", i - trait)
}
}
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.