search for: stri_escape_unicod

Displaying 3 results from an estimated 3 matches for "stri_escape_unicod".

Did you mean: stri_escape_unicode
2018 Aug 30
1
build package with unicode (farsi) strings
...ll > code table is available at https://www.utf8-chartable.de It's a little easier to do this with code: letters_fa <- c('???','?','?','?','?','?','?','?','?','?','?','?') writeLines(stringi::stri_escape_unicode(letters_fa)) #> \u0627\u0644\u0641 #> \u0628 #> \u067e #> \u062a #> \u062b #> \u062c #> \u0686 #> \u062d #> \u062e #> \u0631 #> \u0632 #> \u062f Hadley -- http://hadley.nz
2023 Apr 13
1
Split String in regex while Keeping Delimiter
Dear Emily, Using a look-behind solves the split problem in this case. (Note: Using Regex is in most/many cases the simplest solution.) str = c("leucocyten + gramnegatieve staven +++ grampositieve staven ++", "leucocyten ? grampositieve coccen +") tokens = strsplit(str, "(?<=[-+])\\s++", perl=TRUE) PROBLEM The current expression does NOT work for a different
2018 Aug 28
3
build package with unicode (farsi) strings
Hi, I have a R script file with Persian letters in it defined as a variable: #' @export letters_fa <- c('???','?','?','?','?','?','?','?','?','?','?','?') I have specified the encoding field in my DESCRIPTION file of my package. ... Encoding: UTF-8 ... I also included