This package allows users to get the frequency of occurrence of Chinese characters in the real world. Our statistics are based on news data which includes Tencent, Sina and China Daily and People's daily
You can install the development version of rwstats with:
devtools::install_github("Flaretie/rwstats")
library(rwstats)
Install the rwstats from CRAN with:
install.packages("rwstats")
library(rwstats)
oneChar
contains the frequency of single Chinese characters. eg. "可"
twoChar
contain the frequency of Chinese words of two characters. eg. "可以"
threeChar
contain the frequency of Chinese words of three characters. eg. "不可以"
fourChar
contain the frequency of Chinese words of four characters. eg. "可不可以"
fiveChar
contain the frequency of Chinese words of five characters. eg. "可以不可以"
library(rwstats)
## get the word frequency table of C
head(oneChar)
head(fourChar)
## get the appearence rate of next word
wordMiner.next("可")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.