myNorm: myNorm

Description Usage Arguments Value

View source: R/myNorm.R

Description

Returns original dt with an additional column with normalized quantity. Normalisation is based on part of the trajectory.

Usage

1
2
3
myNorm(in.dt, in.meas.col, in.rt.col = "RealTime", in.rt.min = 10,
  in.rt.max = 20, in.by.cols = NULL, in.robust = TRUE,
  in.type = "z.score")

Arguments

in.dt

data.table, contain a column for: time, measurement(, grouping columns like object label)

in.meas.col

character, name of column to be normalised.

in.rt.col

character, name of the column with time (or index)

in.rt.min

numeric, start time of normalization period.

in.rt.max

numeric, end time of normalization period.

in.by.cols

character vector with 'by' columns to calculate normalisation per group if NULL, no grouping is done

in.robust

logical, whether robust measures should be used (median instead of mean, mad instead of sd).

in.type

type of normalization: 'z.score' or 'mean' (fi.e. old change w.r.t. mean)

Value

A data.table with an additional column with normalized quantity. The name of additional column is the same as in.meas.col but with ".norm" suffix added.


majpark21/TSexploreR documentation built on Oct. 16, 2019, 2:46 p.m.