#' @title Identify Multi-Volume Documents
#' @description Identify multi-volume documents based on the overall data.
#' @details Used to estimate pagecounts for documents with missing page count information. Therefore no page count is considered in assessing the issue status.
#' @param df data.frame of documents x variables
#' @return Logical vector indicating the multi-volume docs
#' @author Leo Lahti \email{leo.lahti@@iki.fi}
#' @references See citation("bibliographica")
#' @export
#' @examples \dontrun{issue <- is.multivol(df)}
#' @keywords utilities
is.multivol <- function (df) {
# All multi-volume docs
inds0 <- (df$volcount > 1)
# Also include docs with a volnumber:
# those should be multi-volume docs anyway
inds1 <- !is.na(df$volnumber)
# Default multi-vol docs are now:
inds <- inds0 | inds1
# And only include docs with available gatherings info
inds <- inds & !is.na(df$gatherings)
# Exclude large documents
#rm.gatherings <- c("1to", "2small", "2to", "2long", "4small", "4to", "4long")
rm.gatherings <- c("1to")
inds <- inds & (!df$gatherings %in% rm.gatherings)
# Mark NAs as FALSE
inds[is.na(inds)] <- FALSE
inds
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.