# only takes the first affiliation
idaffil <- function(x){
tls <- x %>%
html_nodes("p span") %>%
html_text() %>%
trimws()
if (identical(tls, character(0))) {
tls <- NA
}
return(tls[1])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.