blob: 06e2fb3ab53b10bb4bec43bf9835218eb2065841 [file] [log] [blame]
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{percent}
\alias{percent}
\title{Convert corpus frequency table of alternatives to percent}
\usage{
percent(df)
}
\arguments{
\item{df}{table returned from \code{\link{frequencyQuery}}}
}
\value{
original table with converted columns \code{f}, \code{conf.low} and \code{conf.high}
}
\description{
Convenience function for converting frequency tables of alternative variants
(generated with \code{as.alternatives=T}) to percent.
}
\examples{
new("KorAPConnection") \%>\%
frequencyQuery(c("Tollpatsch", "Tolpatsch"),
vc=paste0("pubDate in ", 2000:2002),
as.alternatives = TRUE) \%>\%
percent()
}