Moody_Mudskipper - 3 years ago 127

R Question

Doc

`?integer`

Note that current implementations of R use 32-bit integers for integer

vectors, so the range of representable integers is restricted to about

+/-2*10^9

Is there a defined constant that holds this value ?

My use would be for

`match`

`match(x,y,nomatch=Inf)`

`nomatch`

`integer`

`Inf`

`NA`

`match(x,y,max_int)`

`match(x,y,2*10^9)`

Recommended for you: Get network issues from **WhatsUp Gold**. **Not end users.**

Answer Source

Try:

```
?.Machine
```

.Machine is a variable holding information on the numerical characteristics of the machine R is running on, such as the largest double or integer and the machine's precision.

In your case, you could use:

```
.Machine$integer.max
```

which returns:

```
2147483647
```

Recommended from our users: **Dynamic Network Monitoring from WhatsUp Gold from IPSwitch**. ** Free Download**