Marc Kupietz | 95240e9 | 2019-11-27 18:19:04 +0100 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/misc.R |
| 3 | \name{queryStringToLabel} |
| 4 | \alias{queryStringToLabel} |
| 5 | \title{Convert query or vc strings to plot labels} |
| 6 | \usage{ |
Marc Kupietz | 62d29a1 | 2020-01-18 12:38:36 +0100 | [diff] [blame] | 7 | queryStringToLabel(data, pubDateOnly = F, excludePubDate = F) |
Marc Kupietz | 95240e9 | 2019-11-27 18:19:04 +0100 | [diff] [blame] | 8 | } |
| 9 | \arguments{ |
| 10 | \item{data}{string or vector of query or vc definition strings} |
Marc Kupietz | 62d29a1 | 2020-01-18 12:38:36 +0100 | [diff] [blame] | 11 | |
| 12 | \item{pubDateOnly}{discard all but the publication date} |
| 13 | |
| 14 | \item{excludePubDate}{discard publication date constraints} |
Marc Kupietz | 95240e9 | 2019-11-27 18:19:04 +0100 | [diff] [blame] | 15 | } |
| 16 | \value{ |
| 17 | string or vector of strings with clipped off common prefixes and suffixes |
| 18 | } |
| 19 | \description{ |
| 20 | Converts a vector of query or vc strings to typically appropriate legend labels |
| 21 | by clipping off prefixes and suffixes that are common to all query strings. |
| 22 | } |
| 23 | \examples{ |
| 24 | queryStringToLabel(paste("textType = /Zeit.*/ & pubDate in", c(2010:2019))) |
| 25 | queryStringToLabel(c("[marmot/m=mood:subj]", "[marmot/m=mood:ind]")) |
| 26 | queryStringToLabel(c("wegen dem [tt/p=NN]", "wegen des [tt/p=NN]")) |
| 27 | |
| 28 | } |