Skip to content

Commit 09b2b0a

Browse files
author
maechler
committed
resolve PR#18902, typos in /stats/, incl in some msgs
git-svn-id: https://svn.r-project.org/R/trunk@88269 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent a89bd5f commit 09b2b0a

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

src/library/stats/R/addmargins.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ addmargins <-
148148
## First fill in the body of the table
149149
values[apos] <- as.vector(A)
150150

151-
## Then sucessively compute and fill in the required margins
151+
## Then successively compute and fill in the required margins
152152
for(i in 1L:n.mar) {
153153
mtab <- if(n.dim > 1)
154154
apply(A, (1L:n.dim)[-margin], FUN[[i]])

src/library/stats/R/confint.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ confint.profile.nls <-
136136
ncoefs <- length(coef(attr(object, "original.fit")))
137137
of <- attr(object, "original.fit")
138138
if(is.numeric(parm)) parm <- pnames[parm]
139-
## drop any plinear paramaters
139+
## drop any plinear parameters
140140
parm <- parm[parm %in% pnames]
141141
n <- length(fitted(of)) - length(of$m$getPars())
142142
a <- (1-level)/2

src/library/stats/R/glm.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ summary.glm <- function(object, dispersion = NULL,
711711
if (p > 0) {
712712
p1 <- 1L:p
713713
Qr <- qr.lm(object)
714-
## WATCHIT! doesn't this rely on pivoting not permuting 1L:p? -- that's quaranteed
714+
## WATCHIT! doesn't this rely on pivoting not permuting 1L:p? -- that's guaranteed
715715
coef.p <- object$coefficients[Qr$pivot[p1]]
716716
covmat.unscaled <- chol2inv(Qr$qr[p1,p1,drop=FALSE])
717717
dimnames(covmat.unscaled) <- list(names(coef.p),names(coef.p))

src/library/stats/R/smspline.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ smooth.spline <-
243243
## parms : c(low = , high = , tol = , eps = )
244244
list(x = ux, y = fit$ty, w = wbar, yin = ybar, tol = tol,
245245
data = if(keep.data) list(x = x, y = y, w = w), no.weights = no.wgts,
246-
n = n, # to reliablly know (when keep.data is false) if (nx < n)
246+
n = n, # to reliably know (when keep.data is false) if (nx < n)
247247
lev = lev,
248248
cv = cv,
249249
cv.crit = cv.crit, pen.crit = sum(wbar * (ybar - fit$ty)^2),

src/library/stats/man/optim.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ optimHess(par, fn, gr = NULL, \dots, control = list())
194194
be shared between calls: the function should not change or copy it.
195195
}
196196
%% when numerical derivatives are used, fn is called repeatedly with
197-
%% modified copies of the same objet.
197+
%% modified copies of the same object.
198198

199199
\value{
200200
For \code{optim}, a list with components:

src/library/stats/src/fexact.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ f2xact(int nrow, int ncol, const int table[], int ldtabl,
455455
} else
456456
nro = nrow;
457457

458-
/* Get multiplers for stack */
458+
/* Get multipliers for stack */
459459
kyy[1] = 1;
460460
for (i = 1; i < nro; ++i) {
461461
/* Hash table multipliers */
@@ -1508,7 +1508,7 @@ f6xact(int nrow, int *irow, const int kyy[], int *key, int ldkey, int *last, int
15081508
NROW - The number of rows in the table. (Input)
15091509
IROW - Vector of length nrow containing the row sums on
15101510
output. (Output)
1511-
KYY - Constant mutlipliers used in forming the hash
1511+
KYY - Constant multipliers used in forming the hash
15121512
table key. (Input)
15131513
KEY - Vector of length LDKEY containing the hash table
15141514
keys. (in/output)

src/library/stats/src/fft.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* maxf and maxp which determine the amount of scratch storage
4545
* required by the algorithm.
4646
*
47-
* If maxf is zero on return, an error occured during factorization.
47+
* If maxf is zero on return, an error occurred during factorization.
4848
* The nature of the error can be determined from the value of maxp.
4949
* If maxp is zero, an invalid (zero) parameter was passed and
5050
* if maxp is one, the internal nfac array was too small. This can only

src/library/stats/src/ks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ K2l(double x, int lower, double tol)
172172
173173
for i + j < m + n.
174174
175-
We actually recusively compute
175+
We actually recursively compute
176176
177177
p_{i,j} = A_{i,j} / choose(i + n, i)
178178
@@ -216,7 +216,7 @@ SEXP psmirnov_exact(SEXP sq, SEXP sm, SEXP sn, SEXP sz,
216216
for(i = 0; i < LENGTH(sq); i++) {
217217
q = REAL(sq)[i];
218218
/*
219-
q has about 0.5/mn substracted to ensure that rounding error
219+
q has about 0.5/mn subtracted to ensure that rounding error
220220
doesn't turn an equality into an inequality.
221221
*/
222222
q = (0.5 + floor(q * md * nd - 1e-7)) / (md * nd);

src/library/stats/src/loessc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ switch(*i){
388388
case 180:MSG("nv>nvmax in cpvert.")
389389
case 181:MSG("nt>20 in eval.")
390390
case 182:MSG("svddc failed in l2fit.")
391-
case 183:MSG("didnt find edge in vleaf.")
391+
case 183:MSG("didn't find edge in vleaf.")
392392
case 184:MSG("zero-width cell found in vleaf.")
393393
case 185:MSG("trouble descending to leaf in vleaf.")
394394
case 186:MSG("insufficient workspace for lowesf.")

src/library/stats/src/model.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ SEXP termsform(SEXP args)
20412041
R_xlen_t l = 0;
20422042
#ifdef DEBUG_terms
20432043
Rprintf(" st.5: (bitpattern in int) term: "); printVector(CAR(call), 0, 0);
2044-
Rprintf(" ---- {not tracing GetBit() when determing 'cbuf' length}\n");
2044+
Rprintf(" ---- {not tracing GetBit() when determining 'cbuf' length}\n");
20452045
trace_GetBit = false; // *not* tracing below
20462046
#endif
20472047
for (int i = 1; i <= nvar; i++) {

0 commit comments

Comments
 (0)