Learn R Programming

RKorAPClient (version 0.5.9)

percent: Convert corpus frequency table of alternatives to percent

Description

Convenience function for converting frequency tables of alternative variants (generated with as.alternatives=TRUE) to percent.

Usage

percent(df)

Arguments

df

table returned from frequencyQuery

Value

original table with converted columns f, conf.low and conf.high

Examples

Run this code
# NOT RUN {
new("KorAPConnection") %>%
    frequencyQuery(c("Tollpatsch", "Tolpatsch"),
    vc=paste0("pubDate in ", 2000:2002),
    as.alternatives = TRUE) %>%
  percent()
# }

Run the code above in your browser using DataLab