max_trim: Converts output from max_shift() to a shifted vector Trims a...

Description Usage Arguments Value

Description

Given a vector, this function will trim it according to the output from max_trim. That is will be trimmed to maximise correlation with the rest of the vectors. max_trim will trim the vectors by a multiple of the number of features extracted from metadata.

Usage

1

Arguments

vector

Vector to be trimmed

max_shift

Character containing direction and number of elements to trim in that direction, or '0' for no trim. e.g '+2'.

metadata

Metadata object to extract the number of features. This should be created through construct_metadata.

Value

vector_out The trimmed vector


Swarchal/TISS documentation built on May 9, 2019, 3:24 p.m.