Displaying 20 results from an estimated 14193 matches for "integer".
2023 Feb 16
1
No matching MIB found for sysOID
....2.1.1.2.0 = OID: iso.3.6.1.4.1.3808.1.1.1
iso.3.6.1.2.1.1.3.0 = Timeticks: (11125500) 1 day, 6:54:15.00
iso.3.6.1.2.1.1.4.0 = STRING: "REDACTED CONTACT"
iso.3.6.1.2.1.1.5.0 = STRING: "network-ups"
iso.3.6.1.2.1.1.6.0 = STRING: "REDACTED LOCATION"
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
iso.3.6.1.2.1.2.1.0 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.2.1 = Hex-STRING: 61 67 00 00 00
iso.3.6.1.2.1.2.2.1.2.2 = Hex-STRING: 00 08 3D 12 00
iso.3.6.1.2.1.2.2.1.3.1 = INTEGER: 0
iso.3.6.1.2.1.2.2.1.3.2 = INTEGER: 18
iso.3...
2008 Sep 14
0
Question on glm.nb vs zeroinfl vs hurdle models
...l. Why is that? Is there a problem with the fact that my dataset is extremely zero-inflated, and there are few cases with values different from 0?
Any kind of help would be most welcomed
Thank you and have a great day ahead.
> summary(aaa)
Call:
hurdle(formula = as.integer(x) ~ as.integer(a) + as.integer(b) + as.integer(c) + as.integer(d) + as.integer(e) +
as.integer(f) + as.integer(g) + as.integer(h), data = dep, dist = "negbin")
Count model coefficients (truncated negbin with log link):
Estimate Std. Error z value...
2007 Oct 16
1
error in sample ()
..., 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 number of rows
[30] in matrix in: matrix(scramble, nrow = 30)
[,1] [,2] [,3]
[1,] Integer,30 Integer,30 Integer,30
[2,] Integer,30 Integer,30 Integer,30
[3,] Integer,30 Integer,30 Integer,30
[4,] Integer,30 Integer,30 Integer,30
[5,] Integer,30 Integer,30 Integer,30
[6,] Integer,30 Integer,30 Integer,30
[7,] Integer,30 Integer,30 Integer,30
[8,] Integer,30 Integer,30 Integer,30...
2024 Mar 24
1
an issue about subsetting a vector
...e 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 it comes to the function integer(), the R Help file says:
"Value: integer creates a integer vector of the specified length. Each
element of the vector is equal to 0."
But we see below that integer(0...
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 integer(0) has no elements)
that reduces to a[integer(0)]
and from there you get "select none of the elements".
A related point is explained in the R Inferno
https://www.burns-stat.com/pages/Tutor...
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 coercio...
2010 Nov 17
1
Problem with Megatec DK520 over SNMP (firmware v2.39)
...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
mib-2.33.1.2.3.0 = INTEGER: 0
mib-2.33.1.2.4.0 = INTEGER: 98
mib-2.33.1.2.5.0 = INTEGER: 22
mib-2.33.1.2.6.0 = INTEGER: 0
mib-2.33.1.2.7.0 = INTEGER: 25
mib-2.33.1.3.1.0 = Counter32: 0
mib-2.33.1.3.2.0 = INTEGER: 1
mib-2.33.1.3.3.1.2.1 = INTEGER: 499
mib-2.33.1.3.3....
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 i...
2007 Dec 31
2
the woes of NA
..."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),
"all arguments to -bnodes- must be numeric")
out <- .Fortran("bnodes", N=as.integer(n), LIST=as.integer(lst),
LPTR=as.integer(lptr), LEND=as.integer(lend),
NODES=as.integer(nodes),
NB=as.integer(nb), NA=as.integer(na),
NT=as.integer(nt))
return(out[5:8])
}
I had called routines successfully before, so I couldn't figure out what
was wrong....
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 com...
2015 Mar 12
0
NUT vs PowerWalker/BlueWalker SNMP with VFI 1500RM/3000RM LCD models
...ot;
iso.3.6.1.2.1.33.1.1.2.0 = STRING: "3K"
iso.3.6.1.2.1.33.1.1.3.0 = STRING: "VERFW:00204.04"
iso.3.6.1.2.1.33.1.1.4.0 = STRING: "1.0"
iso.3.6.1.2.1.33.1.1.5.0 = STRING: "SNMP-web-server-3K"
iso.3.6.1.2.1.33.1.1.6.0 = ""
iso.3.6.1.2.1.33.1.2.1.0 = INTEGER: 2
iso.3.6.1.2.1.33.1.2.2.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.2.3.0 = INTEGER: 27
iso.3.6.1.2.1.33.1.2.4.0 = INTEGER: 100
iso.3.6.1.2.1.33.1.2.5.0 = INTEGER: 820
iso.3.6.1.2.1.33.1.2.6.0 = INTEGER: 0
iso.3.6.1.2.1.33.1.2.7.0 = INTEGER: 16
iso.3.6.1.2.1.33.1.3.1.0 = Counter32: 0
iso.3.6.1.2.1.33.1.3.2...
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:...
2001 Feb 24
5
testing for integer
Dear People,
Consider the following fragment of R code
choose <- function(n,r)
{
if( is.integer(n) && is.integer(r) && n > 0 && r >= 0 )
{
.C("choose",as.double(n),as.double(r),comb = double(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 wr...
2009 Nov 12
1
trap window pop up when running 'bugs' in R
...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 "C:/Documents and Settings/BaBaoZ" ...
.pos INTEGER 208
.text TextModels.Model [0100DEA0H]
.v Views.View [01027520H]
BugsCmds.Parse [00000470H]
.name ARRAY 256 OF CHAR...
2004 Jan 14
2
R internal data types
I am trying to figure out R data types and/or storage mode. For example:
> #From a clean workspace
> gc()
used (Mb) gc trigger (Mb)
Ncells 415227 11.1 597831 16
Vcells 103533 0.8 786432 6
> x <- seq(0,100000,1)
> is.integer(x)
[1] FALSE
> is.double(x)
[1] TRUE
> object.size(x)
[1] 800036
> gc()
used (Mb) gc trigger (Mb)
Ncells 415247 11.1 667722 17.9
Vcells 203543 1.6 786432 6.0
> x <- as.integer(x)
> is.integer(x)
[1] TRUE
> is.double(x)
[1] FALSE
> gc()
used (M...
2008 Oct 17
1
missing Rversion.h and Rconfig.h when installing RSQLite under FC8
...;RS_DBI_makeDataFrame'':
RS-DBI.c:396: warning: implicit declaration of function ''SET_CHR_EL''
RS-DBI.c:399: warning: implicit declaration of function ''LST_EL''
RS-DBI.c:399: warning: passing argument 1 of ''Rf_length'' makes pointer
from integer without a cast
RS-DBI.c: In function ''RS_DBI_allocOutput'':
RS-DBI.c:426: warning: assignment makes pointer from integer without a
cast
RS-DBI.c: In function ''RS_DBI_copyfields'':
RS-DBI.c:627: warning: implicit declaration of function ''CHR_EL''...
2015 Apr 17
1
behavior of as.integer("5000000000")
...Apr 2015 15:49:35 +0200 writes:
>>>>> Herv? Pag?s <hpages at fredhutch.org>
>>>>> on Mon, 13 Apr 2015 23:36:14 -0700 writes:
>> 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 m...
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...
2012 Jun 10
3
SNMP agent for NUT
...is written
in ruby with a lot of metaprogramming) but the MIB file
seems to be in a good shape, expect for the missing IANA number. BTW,
I'm no SNMP expert.
Regards,
PS: Just for an example, the current output that I get from a snmpwalk
is like this (for 6 devices):
NUT-MIB::deviceIndex.1 = INTEGER: 1
NUT-MIB::deviceIndex.2 = INTEGER: 2
NUT-MIB::deviceIndex.3 = INTEGER: 3
NUT-MIB::deviceIndex.4 = INTEGER: 4
NUT-MIB::deviceIndex.5 = INTEGER: 5
NUT-MIB::deviceIndex.6 = INTEGER: 6
NUT-MIB::deviceName.1 = STRING: ups2
NUT-MIB::deviceName.2 = STRING: xxx
NUT-MIB::deviceName.3 = STRING: upsoutlet
N...