file2py: Convert the characters in an entire files according to a given dictionary
Description
Convert the characters in an entire files according to a given dictionary
Usage
file2py(folder = "py", backup = TRUE, sep = " ", other_replace = NULL,
encoding = "UTF-8", dic = NA)
Arguments
folder
character. The folder in which the files are to be converted.
backup
logical. Whether the original files should be saved as backups.
sep
character. Seperation between the converted pinyin.
other_replace
NULL or character. Define how to convert non-Chinese characters in mychar. NULL means 'let it be'.
encoding
character. The encoding of the input files. 'UTF-8' by default.
Value
files converted to Pinyin.
Examples
Run this code# NOT RUN {
file2py(dic = NA)
# }
Run the code above in your browser using DataLab