melt_StQ: Convert a dcasted data.table into an object of class StQ

Description Usage Arguments Value See Also Examples

View source: R/melt_StQ.R

Description

melt_StQ returns an object of class StQ from a data.table in dcasted form.

This method builds an object of class StQ with the slot Data constructed from the input data.table and the slot DD given as an input parameter.

This function can be considered as a constructor for the class StQ. It is indeed a wrapper for the function melt.data.table from the package data.table adapted to the structure of the slot Data of object StQ.

The input parameter DD must be of class DD.

Usage

1
melt_StQ(DataMatrix, DD)

Arguments

DataMatrix

of class data.table with dcasted form (statistical units by rows and variables by columns).

DD

Object of class DD.

Value

Object of class StQ.

See Also

dcast_StQ, dcast.data.table, melt.data.table, melt, dcast

Examples

1
2
3

david-salgado/StQ documentation built on Aug. 12, 2021, 3:23 p.m.