[R] How to store something not simple in a vector?

Martin Møller Skarbiniks Pedersen tr@xp|@yer @end|ng |rom gm@||@com
Mon Jan 27 02:25:15 CET 2020


> I am trying to create a vector to store objects create with gmp::as.bigq().
[...]

> library(gmp)
> V <- vector(typeof(as.bigq(1)), 100) # typeof(as.bigq(1)) is raw
> V[[100]] <- as.bigq(1,2)

I got a solution now. If I use a list instead then everything works.

Regards
Martin M. S. Pedersen



More information about the R-help mailing list