Add queryStringToLabel to package misc functions
Change-Id: I300b05c5d379ce868ce71665000471379345cbb5
diff --git a/man/queryStringToLabel.Rd b/man/queryStringToLabel.Rd
new file mode 100644
index 0000000..2381651
--- /dev/null
+++ b/man/queryStringToLabel.Rd
@@ -0,0 +1,24 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/misc.R
+\name{queryStringToLabel}
+\alias{queryStringToLabel}
+\title{Convert query or vc strings to plot labels}
+\usage{
+queryStringToLabel(data)
+}
+\arguments{
+\item{data}{string or vector of query or vc definition strings}
+}
+\value{
+string or vector of strings with clipped off common prefixes and suffixes
+}
+\description{
+Converts a vector of query or vc strings to typically appropriate legend labels
+by clipping off prefixes and suffixes that are common to all query strings.
+}
+\examples{
+queryStringToLabel(paste("textType = /Zeit.*/ & pubDate in", c(2010:2019)))
+queryStringToLabel(c("[marmot/m=mood:subj]", "[marmot/m=mood:ind]"))
+queryStringToLabel(c("wegen dem [tt/p=NN]", "wegen des [tt/p=NN]"))
+
+}