bit64 Questions

2

Solved

How can I pass an NA value from Rcpp to R in a 64 bit vector? My first approach would be: // [[Rcpp::export]] Rcpp::NumericVector foo() { Rcpp::NumericVector res(2); int64_t val = 12345678901...
Mu asked 23/4, 2020 at 11:35

2

Solved

I came across the following result that seems very un-intuitive to me: library(bit64) x = as.integer64(200) y = as.integer64(300) min(x, y) integer64 [1] 300 min.integer64(x, y) integer64 [1] 300 ...
Numerable asked 18/11, 2019 at 14:17

2

Solved

I have data in a csv containing long integers. I am exchanging this data between csvs and fst files. For example, library(bit64) library(data.table) library(fst) library(magrittr) # Prepare exa...
Pals asked 21/2, 2017 at 23:32

1

Solved

I have a data frame consisting entirely of integer64 columns that I'd like to convert to be a matrix. library(bit64) (dfr <- data.frame(x = as.integer64(10^(9:18)))) ## x ## 1 1000000000 ## 2 1...
Catchings asked 1/2, 2015 at 11:43
1

© 2022 - 2024 — McMap. All rights reserved.