replacePow: Replacing ^ to Pow

View source: R/replacePow.R

replacePowR Documentation

Replacing ^ to Pow

Description

Function replacePow(e) used in import.slv to replace ^ to pow, for convert to C model file without errors.

Usage

replacePow(e)

Arguments

e

expression with ^ and sqrt as expression type.

Details

For using function replacePow(e), You need to parse your text and after using function deparse to obtain the text.

See Also

C.from.slv
read.slv

Examples

#Example to using the replacePow function

text = "Cr1=fdr^x+x^y+sqrt(25^(x+3))-sqrt(sqrt(13-x)+(4*x-5)^(2+y))"
e=parse(text=text) #Its neccesary to use parse and deparse functions
print(deparse(replacePow(e)[[1]])) #printing text with pow 




insysbio/dbs-package documentation built on Aug. 4, 2022, 2:11 p.m.