powered by
This function obtains the count and relative frequency of a vector of words within a year range for specified document types.
get_reference_words( doctype = "digibok", from_year = 1990, to_year = 2000, words = NULL )
A list containing the count and relative frequency of the specified words within the given year range and document type.
A character string indicating the document type. One of "digibok", "digavis", or "digitidsskrift".
A numeric value indicating the starting year of the range.
A numeric value indicating the ending year of the range.
A vector of words for which the count and relative frequency will be retrieved.
doctype <- "digibok" from_year <- 1900 to_year <- 2000 words <- c("og", "eller", "men") result <- get_reference_words(doctype, from_year, to_year, words)
Run the code above in your browser using DataLab