[.bigz {gmp} | R Documentation |
Operators acting on vectors, arrays and lists to extract or replace subsets.
a[i] c.bigz(...,recursive = FALSE) rep.bigz(x,times,...)
a,x |
Object or vector of class bigz |
i |
Integer, index of the vector |
... |
Additional parameters |
times |
Integer |
recursive |
Unused |
Unlike standard matrix, operator x[i] & x[i,] do the same.
a <- as.bigz(123) a[2 ] <- a[ 1] ## create a vector of 3 a c(a,a,a) ## repeate a 5 times rep(a,5) ## with matrix m = matrix.bigz(1:6,3) ## this do the same: m[1,] m[1] m[-c(2,3),] m[-c(2,3)] m[c(TRUE,FALSE,FALSE)] ## modification on matrix m[2,-1] <- 11