Learn R Programming

largeList (version 0.3.1)

length<-.largeList: Overload of function length<-.

Description

Set the length of list stored in file.

Usage

# S3 method for largeList
length(x) <- value

Arguments

x
A largeList object created by getList.
value
An integer number

See Also

largeList

Examples

Run this code
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)

Run the code above in your browser using DataLab