Reputation: 21
I read in text from a MySQL table into and R dataframe. (using RODBC, sqlFetch). Have two questions:
The length
function does not work with Unicode and always returns 1 I think.
Upvotes: 2
Views: 1488
Reputation: 263301
You should be able to read the encoding (assuming it is specified) with:
Encoding(x)
The number of characters can be determined with:
nchar(x)
Upvotes: 3