length<-.largeList {largeList} | R Documentation |
Set the length of list stored in file.
## S3 replacement method for class 'largeList' length(x) <- value
x |
A largeList object created by |
value |
An integer number |
largelist_object <- getList("example.llo", truncate = TRUE) largelist_object[[]] <- list("A" = 1, "B" = 2, "C" = 3) ## assign list to the list file length(largelist_object) <- 5 ## get list("A" = 1, "B" = 2, "C" = 3, NULL, NULL)