exec_safe: Execute transformation function safely in which when error...

View source: R/grade.R

exec_safeR Documentation

Execute transformation function safely in which when error happens it will return original value

Description

Execute transformation function safely in which when error happens it will return original value

Usage

exec_safe(x, fun, ...)

Arguments

x

An object to be transformed

fun

A symbol of transform function

...

passed to the transform function

Value

either fun(x); or, when error in fun(x), return(x)

Examples

none

tpemartin/rmdgrader documentation built on Nov. 22, 2022, 6:39 p.m.