[R-gregmisc-commits] r2042 - pkg/gtools/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed May 27 04:23:38 CEST 2015
Author: warnes
Date: 2015-05-27 04:23:37 +0200 (Wed, 27 May 2015)
New Revision: 2042
Modified:
pkg/gtools/R/asc.R
Log:
Somehow lost 'simplify=TRUE' argument to asc. Fixed.
Modified: pkg/gtools/R/asc.R
===================================================================
--- pkg/gtools/R/asc.R 2015-05-27 02:19:55 UTC (rev 2041)
+++ pkg/gtools/R/asc.R 2015-05-27 02:23:37 UTC (rev 2042)
@@ -1,2 +1,4 @@
-asc <- function(char) sapply(char, function(x) strtoi(charToRaw(x),16L) )
+asc <- function(char, simplify=TRUE)
+ sapply(char, function(x) strtoi(charToRaw(x),16L), simplify=simplify )
+
chr <- function(n) sapply(n, function(x) rawToChar(as.raw(x)) )
More information about the R-gregmisc-commits
mailing list