Learn R Programming

Dasst (version 0.3.4)

length<-.Dasst: Set the length of an object of class '>Dasst.

Description

This sets the length of an object of class '>Dasst.

Usage

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

Arguments

x

Object of class '>Dasst.

value

Integer value. Sets the new length of the '>Dasst object.

Value

An integer value corresponding to the actual length of the object.

Details

length<-.Dasst function extends the S3 length generic function. It sets the length of an object of class '>Dasst. The object can be shrinked or extended adding NULL or NA contents.

See Also

length.Dasst

Examples

Run this code
# NOT RUN {
data(plantGrowth)
length(plantGrowth)
length(plantGrowth) <- 8
length(plantGrowth)
# }

Run the code above in your browser using DataLab