func_signal_transform: Initial verification and transformation of input variable

Description Usage Arguments Value Examples

View source: R/func_signal_transform.R

Description

Internal, auxiliary functions

Usage

1

Arguments

data

is a data.frame

signal

is a character that indicates columns of data that include the labels of input

Value

A data.frame that is a copy of data provided with signal column transformed to factor class. If signal has been numeric initially, additional column is created "signal_RAW" that is an exact copy of original column

Examples

1
2
3
4
5
6
data=data_example1
data1=SLEMI:::func_signal_transform(data,"signal")
data$signal=as.character(data$signal)
data2=SLEMI:::func_signal_transform(data,"signal")
data$signal=as.numeric(data$signal)
data3=SLEMI:::func_signal_transform(data,"signal")

SLEMI documentation built on Feb. 22, 2021, 5:11 p.m.