matrix_vals_close: Are the matrix values close?

View source: R/utils.R

matrix_vals_closeR Documentation

Are the matrix values close?

Description

Are the matrix values close?

Usage

matrix_vals_close(submx, sol_env, solmx = submx, tolerance = 0.002, add = TRUE)

Arguments

submx

Quoted name of submission matrix.

sol_env

Solution environment.

solmx

Name of solution matrix.

tolerance

How close the values need to be to be considered identical.

add

Whether to add feedback.

Details

Note that the dimensions are not checked, so can return TRUE if the values are close but come from a matrix of a different dimension.

Value

Number of cell values matching the solution.

See Also

matrix_same_dims


dalejbarr/assessr documentation built on Jan. 25, 2024, 10:47 p.m.