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