Convert object to list of elements

listify(x)

Arguments

x

Object

Examples

if (has_sympy()) {
  x <- as_sym("Matrix([[b1*x1/(b2 + x1)], [b1*x2/(b2 + x2)], [b1*x3/(b2 + x3)]])")
  listify(x)
  
  xT <- t(x)
  listify(xT)
}
#> [[1]]
#> c:  b₁⋅x₁ 
#>    ───────
#>    b₂ + x₁
#> 
#> [[2]]
#> c:  b₁⋅x₂ 
#>    ───────
#>    b₂ + x₂
#> 
#> [[3]]
#> c:  b₁⋅x₃ 
#>    ───────
#>    b₂ + x₃
#>