matrix2vector <- function(betam, variant) {
betav <- NULL
for (k in seq_len(nrow(betam))) {
if (variant[k]) {
betav <- c(betav, betam[k, ])
} else {
betav <- c(betav, betam[k, 1])
}
}
return(betav)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.