繁简转换需要使用单独的词典包,可以使用 OpenCC 工具实现。R 语言的对应接口有 ropencc 。
OpenCC 開放中文轉換 R 语言接口
Linux : Mac : Win :
devtools::install_github("qinwf/ropencc") ccst = converter(S2T) ccst["开放中文转换"] ccts = converter(T2S) ccts["開放中文轉換"]