Learn R Programming

caracas (version 1.1.2)

matrify: Creates matrix from array symbol

Description

Creates matrix from array symbol

Usage

matrify(x)

Arguments

x

Array symbol to convert to matrix

Examples

Run this code
if (has_sympy()) {
  x <- symbol("x")
  y <- symbol("y")
  f <- 3*x^2 + x*y^2
  h <- der2(f, list(x, y))
  h
  dim(h)
  H <- matrify(h)
  H
  dim(H)
}

Run the code above in your browser using DataLab