similar to: Strange behaviour of type conversion (PR#8256)

Displaying 20 results from an estimated 300 matches similar to: "Strange behaviour of type conversion (PR#8256)"

2005 Oct 27
2
Critical Bug in type conversions: as.integer, trunc, ... (PR#8255)
Full_Name: Grischa T?dt Version: 2.1.1 OS: windows XP Submission from: (NULL) (192.108.25.32) I have a strange behaviour in R, looks like type conversions are messed up. To reproduce: expected: > typeof(3) [1] "double" > as.integer(3) [1] 3 !!!! strange: > typeof((0.3/0.1)) [1] "double" > as.integer((0.3/0.1)) [1] 2 also for trunc: >trunc(c(5,7))
2006 Oct 31
4
'make check' fails on d-p-q-r-tests (PR#9326)
'make check' fails on d-p-q-r-tests: > ##-- non central Chi^2 : > xB <- c(2000,1e6,1e50,Inf) > for(df in c(0.1, 1, 10)) + for(ncp in c(0, 1, 10, 100)) stopifnot(pchisq(xB, df=df, ncp=ncp) == 1) Error: pchisq(xB, df = df, ncp = ncp) == 1 is not all TRUE Execution halted Here is some more testing: xB <- c(2000,1e6,1e50,Inf) for(df in c(0.1, 1, 10)) for(ncp in c(0, 1,
2016 Jan 29
2
[Bug 11704] New: rsyncstats sorts dates wrong
https://bugzilla.samba.org/show_bug.cgi?id=11704 Bug ID: 11704 Summary: rsyncstats sorts dates wrong Product: rsync Version: 3.1.2 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 Component: core Assignee: wayned at samba.org Reporter:
2015 Apr 29
2
dimnames returned by function apply
Dear all, I noticed that the dimnames returned by apply are different in the new release. In the following example. The returned row-names are c(?S?,?T?), but shouldn?t they be c(?X?,?Y?) as in the old release? Best, Bernd >X = array(1:8, dim=c(4,2)) >dimnames(X) = list(c("A","B","C","D"),c("S","T")) >apply(X, 1, function(x)
2003 Mar 06
4
write.table row.names and col.names (PR#2610)
Full_Name: Wolfgang Huber Version: 1.6.2 OS: DEC OSF, Win, Linux Submission from: (NULL) (155.52.45.139) When data.frames are written to a file using write.table and with row.names and col.names, then the colnames are displaced by 1 with respect to column content. Example: > x = data.frame( > obscht=c("chriesi", "bire"), >
2005 Sep 05
1
RODBC and 64 bit
Hi all, I was quite succesfully working with the RODB package on a 32 bit linux box to connect to a MSSQL Server via the freeTSL driver. After changing to a 64 bit environment I ran into some segmentation faults using function sqlUpdate on large database operations (the actual seg faults occured in the call to the C function ODBCUpdate). I just briefly looked into the code and found some extensive
2003 Aug 08
2
Wish (PR#3690)
Full_Name: Andreas Buness Version: 1.7.1 OS: Unix Submission from: (NULL) (193.174.53.122) I would like to ask you to enhance the apply function with an option drop=FALSE similar to the one existing for subsetting of arrays. Or any other mechanism to get control on the dimensionality of an object resulting from an apply call. This could facilitate more robust programming.
2004 Jun 16
2
is.integer() (PR#6984)
Hello! I'm not sure if is it a BUG or not... I'm using R 1.9.0, and I used the command below: > is.integer(9) [1] FALSE R manual contains this words about the is.integer() function: "is.integer returns TRUE or FALSE depending on whether its argument is of integer type or not." What's the problem? Am I wrong about the BUG report? Thank you very much. M?rcio de
2009 Jan 19
1
pass by reference for S4
Hi all; Is it possible to modify the "@" operator that it can handle references (or external pointers) of S4 Object instead of the real Objects? Or is there any technical or compatibility issue which make it impossible? I look forward to hear from you and also hope that you don't hate me for my nooby question. Yours sincerely, Rudolf Biczok [[alternative
2009 Jan 23
1
"for" loop wiht S4 Objects
Hi all, I'm working with the S4-Class system and I have a little problem with Implementing iteration functionality in my S4 class but it don't work: > setClass("foo",representation(bar="list")) > x <- new("foo",bar=list(1,2,3)) >for(e in x) cat(e) invalid type/length (S4/1) in vector allocation But when I extend from a
2007 Mar 19
0
Re: Multiple users without write permission on "drive_c"
Grischa Stegemann <grix7-usenet@yahoo.de> wrote: > I have a multiuser environment with lots of users. Some of them are supposed to > use a program running with wine. The problem is how to make the users in > question use a global "drive_c" directory without giving them write permissions > to it? > > So far I have a wrapper script which copies a '.wine'
2003 Dec 17
2
negative numbers from object.size() on 64 bit systems
Has anyone running R 1.8.1 on a 64 bit system gotten negative numbers from object.size() on objects > 2GB or so? For example, on Solaris/Sparc I get > b <- numeric(131072 * 2800) > object.size(b) [1] -1358954440 I get similar behavior on the Opteron (SuSE Linux). I'm not sure if this is an R problem or something wrong with the way it was compiled on either system. I
2004 Aug 12
3
The Depends: field of a package is now used by library()
In R-devel, the Depends: field in the DESCRIPTION file is now used by library() to load the named packages before the current package, and also to set up the environment to save images and prepare for lazy loading. Would authors please use a minimally necessary set of packages in Depends, and put others in Suggests: -- the distinction is made in `Writing R Extensions'. On the other hand,
2003 Sep 13
5
bug or feature? (PR#4150)
Full_Name: Axel Benz Version: 1.7.1 OS: Windows Submission from: (NULL) (137.251.33.43) This feature seems to be a basic bug: > 1=="1" [1] TRUE > as.numeric(1)=="1" [1] TRUE > as.numeric(1)==as.character("1") [1] TRUE isn't it necessary to distinguish beteen numbers and characters?? Best Regards, Axel
2008 Jul 24
3
Should this PDF render correctly without font embedding?
A professor here at Vanderbilt sent me the following code. Each of the text strings should right justify against the center vertical bar, but because of font issues it doesn't. I understand that there are workarounds, but I was just curious if this was consistent across all platforms. On linux with R 2.7.1 and R-trunk (r46103), both acrobat reader 8 and kpdf render it incorrectly. How
2020 May 19
2
Graphic parameters with length zero in grid cause R to crash
Hi, I found in grid package, if the graphic parameters have zero length, R crashes. In the following code, I only tested `grid.rect()` and the `fill` parameter, but I think it should be similar as other grid graphic functions. In `gpar()` function, the graphic parameters are not allowed to have zero length, but we can make them with zero length by first generating a `gpar` object and then
2002 Sep 19
1
install.packages() together with pixmap package (PR#2042)
Full_Name: Wolfgang Huber Version: 1.5.1 OS: Windoof 2000 Submission from: (NULL) (193.174.62.11) Hi, Trying to install the binary distribution (zip file) for the "pixmap" package, as downloaded today from CRAN, I get the following warning "error -1". The package will not be installed. Installation of other packages (e.g. pinktoe, acepack) worked fine. The warning or error
2003 Oct 20
1
Random Number Generator RNGkind() under "R CMD check" (PR#4691)
Full_Name: Wolfgang Huber Version: 1.8.0 OS: Linux Submission from: (NULL) (193.174.58.146) The man page for RNGkind says that the default is Mersenne-Twister, and when I start R interactively, I get in fact > RNGkind() [1] "Mersenne-Twister" "Inversion" However, during the execution of "R CMD check" I get > > ### ** Examples > > > > RNGkind()
2000 Dec 18
2
Segmentation fault with expression on linux
I have a problem, that the plot of mathematical formula sometimes crashes R on Linux (SuSE 6.2 and 7.0 on a Dual PIII/500 machine with 1GB RAM). The problem occurs for example in demo("graphics"), i.e. in the last part were the mathematical symbols are plotted. There are several circumstances to reproduce this segmentation fault, but the following is one of the most simple examples. The
2002 Mar 20
5
inverted axis
Hello everybody! Spse I have the following X <- seq(1:100) #(a dim(100) sequence of integers 1:100 representing the possible actions of player 1 and player2 in a game) BR2X<- br2(X) #(a dim(100) sequence of points on range (1,100) representing the best response function of player 2 to player 1:s actions) BR1X<- br1(X) #(a dim(100) sequence of points on range (1,100)