R, Statistics

Tag Archives: character

Pitfall of XML package: to know the cause

This is the sequel to the previous report “issues specific to cp932 locale, Japanese Shift-JIS, on Windows“.  In this report, I will dig the issues deeper to find out what … Continue reading

February 6, 2016 · 2 Comments

Pitfall of XML package: issues specific to cp932 locale, Japanese Shift-JIS, on Windows

CRAN package XML has something wrong at parsing html pages encoded in cp932 (shift-jis).  In this report, I will show these issues and also their solutions which is workable at … Continue reading

January 31, 2016 · 4 Comments

Write file as UTF-8 encoding in R for Windows

While the R uses UTF-8 encoding as default on Linux and Mac OS, the R for Windows does not use UTF-8 as default. So reading and writing UTF-8 files are … Continue reading

April 17, 2013 · 4 Comments

Fix the encode of data frame

People in English speaking countries may not understand, but the character encoding is indeed troublesome. Fortunately, the R have iconv() function for converting text encoding, but what is for data … Continue reading

April 15, 2013 · Leave a comment

Generating character from number

The sequence operator, “:”, is useful.  A 1:26 generates an integer series from 1 to 26.  However, an ‘A’:’Z’ causes error.  I need a sequence of characters sometimes. The 1st … Continue reading

April 10, 2013 · 1 Comment