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{ |
| 7 | queryStringToLabel(data) |
| 8 | } |
| 9 | \arguments{ |
| 10 | \item{data}{string or vector of query or vc definition strings} |
| 11 | } |
| 12 | \value{ |
| 13 | string or vector of strings with clipped off common prefixes and suffixes |
| 14 | } |
| 15 | \description{ |
| 16 | Converts a vector of query or vc strings to typically appropriate legend labels |
| 17 | by clipping off prefixes and suffixes that are common to all query strings. |
| 18 | } |
| 19 | \examples{ |
| 20 | queryStringToLabel(paste("textType = /Zeit.*/ & pubDate in", c(2010:2019))) |
| 21 | queryStringToLabel(c("[marmot/m=mood:subj]", "[marmot/m=mood:ind]")) |
| 22 | queryStringToLabel(c("wegen dem [tt/p=NN]", "wegen des [tt/p=NN]")) |
| 23 | |
| 24 | } |