Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

formula2string

formula2string removes square brackets from the supplied expressions. Convert par[2] -> par2, sigma[2] -> sigma_2_, sigma[2,3] -> sigma_2x2


Description

formula2string removes square brackets from the supplied expressions. Convert par[2] -> par2, sigma[2] -> sigma_2_, sigma[2,3] -> sigma_2x2

Usage

formula2string(x)

Arguments

x

String with square brackets.

Value

String without square brackets.

Examples

xx <- "par[1]*3+par[2]*par+rho1[1,2]+sigma1[2]"
formula2string(xx)

nmm

Nonlinear Multivariate Models

v0.9
GPL (>= 2)
Authors
Simona Jokubauskaite [aut, cre], Reinhard Hoessinger [aut], Friedrich Leisch [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.