search for: r_neginf

Displaying 10 results from an estimated 10 matches for "r_neginf".

Did you mean: neginf
2002 Aug 23
2
R 1.5.1 not working with Windows NT on Virtual PC 4 (PR#1932)
Full_Name: Alexandre Da Costa Version: 1.5.1 OS: Windows NT 4 on Virtual PC 4 Submission from: (NULL) (193.253.191.74) I am using Virtual PC 4.0.2 for every day work. I wanted to try connections of R 1.5.1 to Oracle DataBases. But R is running but is not working at all ! The simple commands end with "no finite arguments" error. See following session:
2007 Dec 05
4
Java parser for R data file?
Hi everyone, Has anyone written a parser in Java for either the ASCII or binary format produced by save()? I need to parse a single large 2D array that is structured like this: list( "32609_1" = c(-9549.39231289146, -9574.07159324482, ... ), "32610_2" = c(-6369.12526971635, -6403.99620977124, ... ), "32618_2" = c(-2138.29095689061, -2057.9229403233, ... ),
1999 Sep 13
5
axis() produces junk on DEC alpha (PR#274)
Full_Name: Albrecht Gebhardt Version: 0.65.0 OS: Digital Unix 4.0E Submission from: (NULL) (212.17.104.62) Plottimg on the Alpha stopped working with 0.65.0. The tickmarks have a length of -Inf and go across the whole plot. A first solution is the following patch: --- src/main/plot.c.alpha-patch Mon Sep 13 01:37:11 1999 +++ src/main/plot.c Mon Sep 13 01:58:16 1999 @@ -832,7 +832,7 @@
2015 Jun 01
2
sum(..., na.rm=FALSE): Summing over NA_real_ values much more expensive than non-NAs for na.rm=FALSE? Hmm...
...n_t n, double *value, Rboolean narm) { LDOUBLE s = 0.0; Rboolean updated = FALSE; for (R_xlen_t i = 0; i < n; i++) { if (!narm || !ISNAN(x[i])) { if(!updated) updated = TRUE; s += x[i]; } } if(s > DBL_MAX) *value = R_PosInf; else if (s < -DBL_MAX) *value = R_NegInf; else *value = (double) s; return updated; } In other words, when na.rm=FALSE, that inner for loop: for (R_xlen_t i = 0; i < n; i++) { if (!narm || !ISNAN(x[i])) { if(!updated) updated = TRUE; s += x[i]; } } should effectively become (because !ISNAN(x[i]) "d...
1999 Sep 14
0
R with a broken finite() (was [R] Problems with R-0.65.0) (PR#275)
...rkaround). The fix I suggested to Ralf worked, and will probably be incorporated in 0.65.1 (unless we find a better one). Try replacing the line # define R_FINITE(x) ((x) != R_NaReal) in Arith.h by static int R_FINITE(double x) { return !isnan(x) & (x != R_PosInf) & (x != R_NegInf); } -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax:...
2005 Jan 05
1
Standalone Mathlib, C++ and ISNAN()
...ight possible use R_IsNaN instead but this function is not included in libRmath v2.0 and the function R_IsNaNorNA which was used in libRmath v1.9 no longer exists While I am on this topic, there seems to be nothing at all in the standalone libRmath to deal with ISNA() and although R_PosInf and R_NegInf are in the library, they don't seem to me to be declared. Bill Northcott
2016 Dec 01
1
Different results for cos,sin,tan and cospi,sinpi,tanpi
hi, my environment... > sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 8 (jessie) locale: [1] LC_CTYPE=ja_JP.UTF-8 LC_NUMERIC=C [3] LC_TIME=ja_JP.UTF-8 LC_COLLATE=ja_JP.UTF-8 [5] LC_MONETARY=ja_JP.UTF-8 LC_MESSAGES=ja_JP.UTF-8 [7] LC_PAPER=ja_JP.UTF-8 LC_NAME=C [9] LC_ADDRESS=C
2015 Jun 01
0
sum(..., na.rm=FALSE): Summing over NA_real_ values much more expensive than non-NAs for na.rm=FALSE? Hmm...
...BLE s = 0.0; > Rboolean updated = FALSE; > for (R_xlen_t i = 0; i < n; i++) { > if (!narm || !ISNAN(x[i])) { > if(!updated) updated = TRUE; > s += x[i]; > } > } > if(s > DBL_MAX) *value = R_PosInf; > else if (s < -DBL_MAX) *value = R_NegInf; > else *value = (double) s; > return updated; > } > > In other words, when na.rm=FALSE, that inner for loop: > > for (R_xlen_t i = 0; i < n; i++) { > if (!narm || !ISNAN(x[i])) { > if(!updated) updated = TRUE; > s += x[i]; > } >...
1999 Sep 13
4
Problems with R-0.65.0
Hello, I installed the new release 0.65.0 of R on our local Solaris system. As I already (and sucessfully) installed the 0.64.0 and 0.64.1 version of R, I hadn't had any trouble during the installation. But as I've started R in order to see the demo I've got horizontal and vertical lines goint to the left and top of the X11 window at each tick (demo ("graphics")). This seems
2007 Mar 03
0
2 bugs in max.col() (PR#9542)
...void R_row_max_double(double *x, int *nr, int *nc, int *narm, double *values) { int r, c, n_r = *nr, n_c = *nc, na_rm = *narm; double e, extreme; Rboolean isna; for (r = 0; r < n_r; r++) { /* first check row for any NAs and find the largest entry */ extreme = R_NegInf; isna = FALSE; for (c = 0; c < n_c; c++) { e = x[r + c * n_r]; if (ISNAN(e)){ if (!na_rm){ isna = TRUE; break; } }else if (e>extreme){ extreme = e;...