Description
Utility Functions of Fangzhou Xie.
Description
This is a collection of some useful functions when dealing with text data. Currently it only contains a very efficient function of decoding HTML entities in character vectors by 'Rcpp' routine.
README.md
xutils
This is a package that contains functions dealing with data, which I personally found useful. Hence the name: xutils.
Installation
You can install the released version of xutils
from CRAN with:
install.packages("xutils")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("fangzhou-xie/xutils")
Example
This is a basic example of using the only function in xutils
package: the html_decode
function.
# load library
library(xutils)
# create test strings
strings <- c("abcd", "& ' >", "&", "€ <")
# decode
html_decode(strings)
#> [1] "abcd" "& ' >" "&" "€ <"
License
The package is distributed under MIT license.