par_grid: creates grid with function values

View source: R/par_grid.R

par_gridR Documentation

creates grid with function values

Description

This function creates a grid, where x are the row-names, y are the column names and the grid-values are the function values at (x,y).

Usage

par_grid(x, y, func, ...)

Arguments

x

vector of x-values

y

vector of y-values

func

function to create grid values

...

optional: arguments of func

Value

length(x) x length(y) - matrix with function values evaluated at (x,y)

Examples

par_grid(seq(0, 1, 10), seq(0, 1, 11), sum)

SaskiaSchirmer/CONSURE documentation built on Sept. 3, 2023, 8:52 a.m.