getCOSMAS | R Documentation |
Function for reading in concordances created with the search interface of the Institute for the German Language (IDS), COSMAS II, as data frames.
getCOSMAS(filename, merge = FALSE, years = FALSE,
more_context = TRUE, ...)
filename |
Path to the COSMAS II output file. |
merge |
If matches consist of more than one word (e.g. if you searched for something like "the X-er the Y-er" or "the ADJ person" rather than just for e.g. "word"), should they be merged in one column? |
years |
Set to TRUE if you exported "Jahresansicht" or "Jahrzehntansicht". Set to FALSE (the default) if you exported an unsorted concordance (which is COSMAS II's default setting). The concordances package currently only supports unsorted concordances, "Jahresansicht", and "Jahrzehntansicht". |
more_context |
If TRUE (the default), the "Belege" section from the concordance file is used to preserve the user-defined context window. If FALSE, only the "KWIC" section from the concordance file is used, which means that only ca. 5 words left and right are preserved, ignoring the user-defined context window. |
... |
arguments passed on from other methods |
A KWIC data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.