The sfsmisc Package - NexTag Supports Open Source Initiatives
The sfsmisc Package - NexTag Supports Open Source Initiatives
The sfsmisc Package - NexTag Supports Open Source Initiatives
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4 D1D2<br />
Details<br />
Value<br />
Only codes in 0:127 make up the ASCII encoding which should be identical for all R versions,<br />
whereas the ‘upper’ half is often determined from the ISO-8859-1 (aka “ISO-Latin 1)” encoding,<br />
but may well differ, depending on the locale setting, see also Sys.setlocale.<br />
AsciiToInt (and hence ichar) and chars8bit return a vector of the same length as their<br />
argument.<br />
strcodes(x, tab) returns a list of the same length and names as x with list components<br />
of integer vectors with codes in 0:255.<br />
Author(s)<br />
Martin Maechler, partly in 1991 for S-plus<br />
Examples<br />
chars8bit(65:70)#-> "A" "B" .. "F"<br />
stopifnot(identical(LETTERS, chars8bit(65:90)),<br />
identical(AsciiToInt(LETTERS), 65:90))<br />
## Not run:<br />
## may only work in ISO-latin1 locale (not in UTF-8):<br />
strcodes(c(a= "ABC", ch="1234", place = "Zürich"))<br />
## gives<br />
$a<br />
[1] 65 66 67<br />
$ch<br />
[1] 49 50 51 52<br />
$place<br />
[1] 90 252 114 105 99 104<br />
## End(Not run)<br />
D1D2<br />
Numerical Derivatives of (x,y) Data via Smoothing Splines<br />
Description<br />
Usage<br />
Compute numerical derivatives of f() given observations (x,y), using cubic smoothing splines<br />
with GCV, see smooth.spline. In other words, estimate f ′ () and/or f ′′ () for the model<br />
Y i = f(x i ) + E i , i = 1, . . . n,<br />
D1D2(x, y, xout = x, spar.offset = 0.1384, deriv = 1:2, spl.spar = NULL)