search for: integers

Displaying 20 results from an estimated 14132 matches for "integers".

Did you mean: integer
2023 Feb 16
1
No matching MIB found for sysOID
Hello all, Thank you in advance for a great FOSS project. Also, thank you for reading my question. I have a CyberPower OR1500LCDRTXL2U with an RMCARD205. There are a handful of devices plugged into the UPS. I received a message today saying to send upsc output to NUT developers after this message: "No matching MIB found for sysOID '.1.3.6.1.4.1.3808.1.1.1'" root at
2008 Sep 14
0
Question on glm.nb vs zeroinfl vs hurdle models
Good afternoon, I?m in need of an advice regarding a proper use of glm.nb, zeroinfl or hurdle with my dataframe. I can not provide a self-contained example, since I need an advice on this current dataset and its ?contradictory? results. So.... i have a dataset which contains 1309 cases and 11 variables, highly right-skewed and heavily zeroinflated (with over 1100 cases that have 0 value
2007 Oct 16
1
error in sample ()
I am trying to get a random matrix based on an original matrix called disperser.mx, with dimensions 30x73 When I write the following code: >scramble = sample (disperser.mx) >newmat = matrix(scramble, nrow=30) I get the following warning message and a very weird matrix with 30 rows but only 3 columns shown below: Warning message: data length [73] is not a sub-multiple or multiple of the
2024 Mar 24
1
an issue about subsetting a vector
To the R-Help list, I would like to have a clarification about an issue that I observe when subsetting a vector. This is R version 4.3.3 on Windows 10. -- Example with a vector: > a <- 1:5 > a [1] 1 2 3 4 5 So we have, with a negative index: > a[-3] [1] 1 2 4 5 But when the index is integer(0), we have this: > a[integer(0)] integer(0) > a[-integer(0)] integer(0) When
2024 Mar 24
1
an issue about subsetting a vector
As with a lot of things in R, the behaviour is counterintuitive but (arguably) logical. The key (maybe) is that `a[-x]` does not mean "take all of the elements of a except those indicated by `x`, but rather, "negate x, then take all but the negative elements". In other words, -integer(0) is integer(0) (we multiply *each of the elements of integer(0)* by -1, but
2015 Apr 14
3
behavior of as.integer("5000000000")
On 04/13/2015 11:32 PM, Martin Maechler wrote: > >> Hi, >> > as.integer("5000000000") >> [1] 2147483647 >> Warning message: >> inaccurate integer conversion in coercion > >> > as.integer("-5000000000") >> [1] NA >> Warning message: >> inaccurate integer conversion in coercion >
2010 Nov 17
1
Problem with Megatec DK520 over SNMP (firmware v2.39)
Hi all, I think the problem is related with the latest nut update (now I'm using version 2.4.3) # snmpwalk -Os -c public -v 1 192.168.20.60 [...] mib-2.33.1.1.1.0 = "" mib-2.33.1.1.2.0 = "" mib-2.33.1.1.3.0 = "" mib-2.33.1.1.4.0 = STRING: "2.39.DK520" mib-2.33.1.1.5.0 = "" mib-2.33.1.2.1.0 = INTEGER: 2 mib-2.33.1.2.2.0 = INTEGER: 0
2002 May 29
4
Why is.integer() doesn't work with single values?
Hi all, I don't understand the behavior of is.integer(): > x <- integer() > is.integer(x) [1] TRUE > x <- 10 > is.integer(x) [1] FALSE > x <- 1:10 > is.integer(x) [1] TRUE Why is.interger() returns FALSE if x has only one element? And how can someone check if x is an integer but contains only one value? (R 1.5.0 on Linux i386) Thanks, Sven
2007 Dec 31
2
the woes of NA
Joyful. I'm adapting a FORTRAN 77 package for use with R. Pretty straightforward. Except for a glitch it took me some time to figure out. This existing package has subroutines which have parameters called "NA". So, I called subroutines like bnodes <- function(n, lst, lptr, lend, nodes, nb, na, nt) { ensure.all.numeric(list(n, lst, lptr, lend, nodes, nb, n.a, nt),
2005 Mar 08
2
a==0 vs as.integer(a)==0 vs all.equal(a,0)
hi ?integer says: Note that on almost all implementations of R the range of representable integers is restricted to about +/-2*10^9: 'double's can hold much larger integers exactly. I am getting very confused as to when to use integers and when not to. In my line I need exact comparisons of large integer-valued arrays, so I often use as.integer(), but the above seems to tell m...
2015 Mar 12
0
NUT vs PowerWalker/BlueWalker SNMP with VFI 1500RM/3000RM LCD models
Hello, I have two UPS from PowerWalker: VFI 1500RM LCD and VFI 3000RM LCD both equiped with SNMP card, but NUT with snmp-ups does not support them. PowerWalker declare support RFC1213, RFC162 but there is a problem with some snmp values: # upsdrvctl start Network UPS Tools - UPS driver controller 2.6.4 Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4) Detected 3K on host 10.0.0.236
2015 Apr 14
3
behavior of as.integer("5000000000")
Hi, > as.integer("5000000000") [1] 2147483647 Warning message: inaccurate integer conversion in coercion > as.integer("-5000000000") [1] NA Warning message: inaccurate integer conversion in coercion Is this a bug or a feature? The man page suggests it's the latter: ?as.integer? attempts to coerce its argument to be of integer type.
2001 Feb 24
5
testing for integer
...1))$comb } else stop("n must be a positive integer and r a non-negative integer.") } This is a practice function (n choose r), which I wrote using a call to C code. Unfortunately, there is the following problem. I thought I would put in error checking for whether the arguments were integers. However, is.integer(1), for example, returns FALSE. However is.numeric(1) returns TRUE. It seems that explicit coercion is required for this ie. is.integer(as.integer(1)) returns true However, I can't use as.integer, because it is too aggressive for just error checking: it rounds off the val...
2009 Nov 12
1
trap window pop up when running 'bugs' in R
Hi, I'm writing to ask what is the reason that a Trap window always pops up in WinBUGS? I'm tring to run the function 'bugs' in R for a zero-inflated gaussian model. The contents appear in the Trap window is as follows: *incompatible copy BugsCmds.TextError [000003A1H] .beg INTEGER 1636169112 .end INTEGER 16861596 .name ARRAY 256 OF CHAR
2004 Jan 14
2
R internal data types
...6),as.integer(7))) [1] TRUE > is.integer(c(as.integer(5),as.integer(6),7)) [1] FALSE > is.integer(seq(as.integer(5),as.integer(10),1)) [1] FALSE > is.integer(seq(as.integer(5),as.integer(10),as.integer(1))) [1] TRUE So it looks like R stores numbers as doubles unless the are converted to integers (long) with the as.integer() function or they are created with the : operator. If any of the numbers to a function are not type integer than the function returns type double. Is this the case? Thanks. Ben Stabler Oregon Department of Transportation
2008 Oct 17
1
missing Rversion.h and Rconfig.h when installing RSQLite under FC8
Hello, I am having problems installing RSQLite under FC8. The error message seems to indicate Rversion.h and Rconfig.h are missing. To illustrate the problem, I have copied below the output shown when I first install R (binary distribution) and then try to install RSQLite. Because the problem does not occur when installing RSQLite with R under Windows I suspect the problem is perhaps due to my
2015 Apr 17
1
behavior of as.integer("5000000000")
..., the fact that as.integer("-5000000000") did produce an NA > instead of -2147483647 so it would have been compatible with as.integer("5000000000") > was just another coincidence, namely that we "currently" code NA_integer_ > by INT_MIN (for 32 bit integers, INT_MIN = 2147483648 = 2^31) > [[but your C code must not rely on that, it is an implementation detail!]] > Martin
2010 Oct 13
2
How to fix error in the package 'rgenoud'
Dear R user fellows, I would like to ask you about the package 'rgenoud' which is a genetic optimization tool. I ran the function 'genoud' with two variables to be minimized by the following command. result<-genoud(fn,nvars=2,starting.values=c(0.5,0), pop.size=1000, max.generations=10, wait.generations=3) Then, I had the following error message. Error in
2006 Apr 26
3
A question about is.interger function
Hi, All I am using is.integer function to examine whether an object is an integer or not, but I get such results, > x<-3 > is.integer(x) [1] FALSE > x<-3:4 > x [1] 3 4 > is.integer(x) [1] TRUE Seems that the is.integer cannot handle scalers, > is.integer(5) [1] FALSE > is.integer(5:6) [1] TRUE Is this a bug in R or I made some mistakes? I am using R 2.2.1 under
2012 Jun 10
3
SNMP agent for NUT
Hello guys, I was some years ago when I sent something to this list. NUT is a great tool but lacks SNMP management. It can access a device using SNMP but I found no way to read NUT values using SNMP. It would be very useful in order to integrate with network management software based on SNMP. As I did not find a solution, I wrote it myself. I wrote a MIB file and a SNMP agent for net-snmp