Displaying 1 result from an estimated 1 matches for "all8bit".
2003 Oct 23
1
Re: ichar() function in R : 1st implementation, RFC
...-----
## Author: Martin Maechler, Date: 23 Oct 2003, 12:42
lapply(strsplit(x, ""), match, table = table)
}
## S-PLUS has AsciiToInt() officially, and ichar() in library(examples):
AsciiToInt <- ichar <- function(strings) unname(unlist(strcodes(strings)))
## Examples:
all8bit <- chars8bit(0:255)
matrix(all8bit, 32, 8, byrow = TRUE)
x <- c(a = "abc", bb = "BLA & blu", Person = "M?chler, Z?rich")
strcodes(x)
AsciiToInt(x)