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

length<-.DasstR Documentation

Set the length of an object of class Dasst.

Description

This sets the length of an object of class Dasst.

Usage

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

Arguments

x

Object of class Dasst.

value

Integer value. Sets the new length of the Dasst 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.

Value

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

See Also

length.Dasst

Examples

data(plantGrowth)
length(plantGrowth)
length(plantGrowth) <- 8
length(plantGrowth)

hlozza/Dasst documentation built on April 22, 2022, 6:41 p.m.