par_delete: Delete parenthesis including a numeric within a vector

View source: R/par_delete.r

par_deleteR Documentation

Delete parenthesis including a numeric within a vector

Description

This function deletes all parenthesis from a character vector that has a numeric value inside. This is applicable as THETA(n), ETA(n), DADT(n) is not always allowed in R coding

Usage

par_delete(vect, excfun = TRUE)

Arguments

vect

the vector that should be scanned for parenthesis

excfun

exclude functions from deleting parenthesis (taken from the globally defined function list in the package)

Value

a vector with the stripped parenthesis

Author(s)

Richard Hooijmaijers

Examples


par_delete(c("LOG(1)","ETA(1)","EXP(2)/ETA(3)+THETA(4)"))

amp.sim documentation built on May 7, 2026, 5:08 p.m.