Learn R Programming

gratia (version 0.9.0)

add_constant: Add a constant to estimated values

Description

Add a constant to estimated values

Usage

add_constant(object, constant = NULL, ...)

# S3 method for smooth_estimates add_constant(object, constant = NULL, ...)

# S3 method for smooth_samples add_constant(object, constant = NULL, ...)

# S3 method for mgcv_smooth add_constant(object, constant = NULL, ...)

# S3 method for parametric_effects add_constant(object, constant = NULL, ...)

# S3 method for tbl_df add_constant(object, constant = NULL, column = NULL, ...)

# S3 method for evaluated_parametric_term add_constant(object, constant = NULL, ...)

Value

Returns object but with the estimate shifted by the addition of the supplied constant.

Arguments

object

a object to add a constant to.

constant

the constant to add.

...

additional arguments passed to methods.

column

character; for the "tbl_df" method, which column to add the constant too.

Author

Gavin L. Simpson