Marc Kupietz | bb7d232 | 2019-10-06 21:42:34 +0200 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/misc.R |
| 3 | \name{ipm} |
| 4 | \alias{ipm} |
| 5 | \title{Convert corpus frequency table to instances per million.} |
| 6 | \usage{ |
| 7 | ipm(df) |
| 8 | } |
| 9 | \arguments{ |
| 10 | \item{df}{table returned from \code{\link{frequencyQuery}}} |
| 11 | } |
| 12 | \value{ |
| 13 | original table with additional column \code{ipm} and converted columns \code{conf.low} and \code{conf.high} |
| 14 | } |
| 15 | \description{ |
| 16 | Convenience function for converting frequency tables to instances per |
| 17 | million. |
| 18 | } |
| 19 | \details{ |
| 20 | Given a table with columns \code{f}, \code{conf.low}, and \code{conf.high}, \code{ipm} ads a \code{column ipm} |
| 21 | und multiplies conf.low and \code{conf.high} with 10^6. |
| 22 | } |
| 23 | \examples{ |
Marc Kupietz | 05b2277 | 2020-02-18 21:58:42 +0100 | [diff] [blame] | 24 | \donttest{ |
Marc Kupietz | bb7d232 | 2019-10-06 21:42:34 +0200 | [diff] [blame] | 25 | new("KorAPConnection") \%>\% frequencyQuery("Test", paste0("pubDate in ", 2000:2002)) \%>\% ipm() |
| 26 | } |
Marc Kupietz | 05b2277 | 2020-02-18 21:58:42 +0100 | [diff] [blame] | 27 | } |