func_signal_transform: Initial verification and transformation of input variable

View source: R/func_signal_transform.R

func_signal_transformR Documentation

Initial verification and transformation of input variable

Description

Internal, auxiliary functions

Usage

func_signal_transform(data, signal)

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

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 Nov. 20, 2023, 1:06 a.m.