StQT-class: S4 class of dataset transformations.

Description Details Examples

Description

Definition of an S4 class named StQT for data transformation.

Details

The structure of the class StQT comprises 2 attributes:

The rules are represented with the following fields in the Rules data.frame.

domain

Specifies where the rule is applied

output

Output variables

fun

Function to apply

input

Input variables

by

Variables to group by

order

Variables to order by

key

Key of the output variables

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
T1 <- new(Class = 'StQT', Rules = data.frame(
                             domain="",
                             output="VAR",
                             fun="*",
                             input="SD,SD",
                             by="",
                             order="",
                             key="",
                             stringsAsFactors = FALSE),
                             Functions = list(`*`=`*`))
T1
getRules(T1)
getFunctions(T1)

Luis-Sanguiao/StQT documentation built on May 7, 2019, 2:03 p.m.