Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/xpssComputeStrings.R
Helper Function for xpssCompute. R Implementation of the SPSS CHAR.MBLEN
Function.
1 | computeChar_mblen (x,pos = NULL)
|
x |
character vector, or a vector to be coerced to a character vector. Giving a factor is an error. |
pos |
position of character or sign the number of bytes return to. |
Important for Asian languages, where a character can fill more than one byte.
Numeric. Returns the number of bytes in the character at position pos
in x
.
Bastian Wiessner
1 2 | #Returns 1 cause the letter "R" fills one byte.
xpssCompute(x="R is great!", fun="computeChar_mblen", pos=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.