Displaying 8 results from an estimated 8 matches for "keepna".
2003 Dec 30
1
Accuracy: Correct sums in rowSums(), colSums() (PR#6196)
...54 mode, the patch is
attached.
It is intended to be applied against R-1.7.1/src/main/array.c
--------- Cut here ----------
*** array.c.old Mon Dec 15 17:33:23 2003
--- array.c Mon Dec 15 17:33:45 2003
***************
*** 1016,1022 ****
int OP, n, p, cnt = 0, i, j, type;
Rboolean NaRm, keepNA;
int *ix;
! double *rx, sum = 0.0;
checkArity(op, args);
x = CAR(args); args = CDR(args);
--- 1016,1022 ----
int OP, n, p, cnt = 0, i, j, type;
Rboolean NaRm, keepNA;
int *ix;
! double *rx, sum = 0.0, correction = 0.0;
checkArity(op, args);...
2015 Apr 24
2
Development version of R: Improved nchar(), nzchar() but changed API
...23 Apr 2015) | 1 line
Changed paths:
M doc/NEWS.Rd
M src/library/base/R/New-Internal.R
M src/library/base/R/zzz.R
M src/library/base/man/nchar.Rd
M src/main/character.c
M src/main/names.c
M tests/reg-tests-1a.R
nchar(x) now gives NA for character NAs, configurably via nchar(x, keepNA=*); analogously for nzchar()
------------------------------------------------------------------------
Enhanced via the new argument 'keepNA' (a logical, i.e., TRUE/FALSE/NA),
but also *not* backward compatible in the current
implementation. Here's how it works [currently], showing th...
2023 May 06
1
Change DEFAULTDEPARSE to DEFAULTDEPARSE | SHOWATTRIBUTES ?
The deparse options used by default by 'deparse' and 'dput' are
c("keepNA", "keepInteger", "niceNames", "showAttributes")
but Defn.h still has
#define DEFAULTDEPARSE 1089 /* KEEPINTEGER | KEEPNA | NICE_NAMES, used for
calls */
i.e., with the SHOWATTRIBUTES bit turned off. Is that on purpose?
Note that this leads to weird thin...
2011 Aug 29
3
How to safely using OpenMP pragma inside a .C() function?
I am trying to parallelize part of a C function that is called from R (via
.C) using OpenMP's "parallel for" pragma. I get mixed results: some runs
finish with no problem, but some lead to R crashing after issuing a long
error message involving memory violations.
I found this post, which describes how a .Call() function can be made to
avoid crashing R by raising the stack limit:
2015 Apr 27
1
Development version of R: Improved nchar(), nzchar() but changed API
Dear Martin,
Does the work on nchar mean that bugs #16090 and #16091 will be resolved
[1,2]?
Thanks,
Mark
[1] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16090
[2] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16091
On Sat, Apr 25, 2015 at 11:06 PM, James Cloos <cloos at jhcloos.com> wrote:
> >>>>> "GC" == G?bor Cs?rdi <csardi.gabor at
2018 Mar 30
0
Nice names in deparse
...rguments.
In R devel r73778, with
x <- 0; names(x) <- "recursive"? ,
dput(x)
or even
dput(x, control = "all")
gives
c(recursive = 0)
However, actual result of c(recursive = 0) is NULL.
Also with
x <- 0; names(x) <- "recursive"? ,
dput(x, control = c("keepNA", "keepInteger", "showAttributes"))
in R devel r73778
gives
structure(c(0), .Names = "recursive")
The 'control' is suggested by an example for output as in R < 3.5.0. However, the output is slightly different from
dput(x)
in R 3.3.2:
structure(0, .Names...
2007 Apr 24
0
R 2.5.0 is released
...nction with --args.
o contour() now passes graphical parameters in '...' to axis()
and box().
o New data set 'crimtab' on Student(1908)'s 3000 criminals.
o cut.default() has a new argument 'ordered_result'.
o .deparseOpts() has two new options: "keepNA" to ensure that
different types (logical, integer, double, character and
complex) of NAs are distinguished, and "S_compatible" to
suppress the use of R-specific features such as 123L and to
deparse integer values of a double vector with a trailing
decimal point.
The 'keepI...
2007 Apr 24
0
R 2.5.0 is released
...nction with --args.
o contour() now passes graphical parameters in '...' to axis()
and box().
o New data set 'crimtab' on Student(1908)'s 3000 criminals.
o cut.default() has a new argument 'ordered_result'.
o .deparseOpts() has two new options: "keepNA" to ensure that
different types (logical, integer, double, character and
complex) of NAs are distinguished, and "S_compatible" to
suppress the use of R-specific features such as 123L and to
deparse integer values of a double vector with a trailing
decimal point.
The 'keepI...