split_feat: IFC_features_def Definition Splitting

View source: R/redefine_utils.R

split_featR Documentation

IFC_features_def Definition Splitting

Description

Helper to split a features definitions within IFC_features_def.

Usage

split_feat(
  features_def,
  all_names = names(features_def),
  alt_names = NULL,
  m_names = sprintf("M%02i", 1:12),
  i_names = sprintf("Ch%02i", 1:12),
  comb_operators = c("+", "-", "*", "/", "(", ")", "ABS", "COS", "SIN", "SQR", "SQRT"),
  extr_operators = c("true", "false", "True", "False"),
  split = "|",
  force = FALSE
)

Arguments

features_def

an 'IFC_features_def' object or a list containing features definition. Default is missing.

all_names

the names of all allowed names.

alt_names

vector of same length as 'all_names' to use for substitution. It can be used to speed up the process.

m_names

names of masks.

i_names

names of images.

comb_operators

operators used for combined features. Default is c("+", "-", "*", "/", "(", ")", "ABS", "COS", "SIN", "SQR", "SQRT").

extr_operators

operators used for non combined features. Default is c("true", "false", "True", "False"). Those will be added to 'm_names', 'i_names' and all possible features names (as given by the getFromNamespace("featureIFC", "IFC")()).

split

string used for splitting. Default is "|".

force

whether to force splitting even if 'split' is detected.

Value

an 'IFC_features_def' object, or a list containing features definition


IFC documentation built on Sept. 14, 2023, 1:08 a.m.