eval_grid: Evaluate code (given as a character string) at gridded points...

View source: R/eval.R

eval_gridR Documentation

Evaluate code (given as a character string) at gridded points on the (x, y) plane

Description

Evaluate code (given as a character string) at gridded points on the (x, y) plane

Usage

eval_grid(code, xmin = 0, xmax = 1, xn = 10, ymin = xmin, ymax = xmax, yn = xn)

Arguments

code

A character string containing an R expression.

xmin, xmax, xn

grid dimensions along x-axis i.e. the minimum and maximum extents on the x axis, and the number of grid points to generate along this dimension

ymin, ymax, yn

grid dimensions along y-axis i.e. the minimum and maximum extents on the y axis, and the number of grid points to generate along this dimension. Defaults to same as x-axis

Value

data.frame of (x, y) coordinates and the evaluated function at these coordinates z

Examples

eval_grid("x + y")


ropenscilabs/bnf documentation built on May 15, 2022, 2:20 a.m.