Int64toInt64 | R Documentation |
This function takes an integer64-valued input vector, converts
it to the equivalent int64_t
vector in C++, displays each
element after first adding one, and returns the modified vector.
Int64toInt64(vec)
vec |
An |
A modified integer64
vector where each element
increased by one
# generate all powers of 10 fro 0 .. 18
if (requireNamespace("bit64", quietly=TRUE)) {
v <- bit64::as.integer64(10^seq(0,18))
# pass them to function which will add one to each, print and return
Int64toInt64(v)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.