setType-set-fdata-method: Setter method of 'fdata' class

Description Usage Arguments Value See Also Examples

Description

Sets the slot type of an fdata object and validates the slot data before setting.

Usage

1
2
## S4 replacement method for signature 'fdata'
setType(object) <- value

Arguments

object

An fdata objects, whose slot type should be set.

value

A character that should be set as type slot of the fdata object. Has to be of type integer.

Value

The fdata object with slot type set to value or an error message if the value cannot be set as slot type.

See Also

fdata for all slots of the fdata class

Examples

1
2
3
# Generate an empty fdata object.
f_data <- fdata()
setType(f_data) <- "discrete"

simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.