Returns a vector of model coefficients of the parametric terms that represent the supplied smooth.

## Usage

```
smooth_coefs(object, ...)
# S3 method for gam
smooth_coefs(object, select, term = deprecated(), ...)
# S3 method for bam
smooth_coefs(object, select, term = deprecated(), ...)
# S3 method for gamm
smooth_coefs(object, select, term = deprecated(), ...)
# S3 method for gamm4
smooth_coefs(object, select, term = deprecated(), ...)
# S3 method for list
smooth_coefs(object, select, term = deprecated(), ...)
# S3 method for mgcv.smooth
smooth_coefs(object, model, ...)
# S3 method for scam
smooth_coefs(object, select, term = deprecated(), ...)
```

## See also

`smooth_coef_indices()`

for extracting the indices of the
coefficients for a particular smooth.

## Examples

```
# \dontshow{
op <- options(pillar.sigfig = 3, cli.unicode = FALSE)
# }
load_mgcv()
df <- data_sim("eg1", seed = 2)
m <- gam(y ~ s(x0) + s(x1) + s(x2) + s(x3), data = df, method = "REML")
## IGNORE_RDIFF_BEGIN
smooth_coefs(m, select = "s(x2)")
#> s(x2).1 s(x2).2 s(x2).3 s(x2).4 s(x2).5 s(x2).6 s(x2).7 s(x2).8
#> -6.533373 9.694277 2.194078 -1.967280 -2.374874 1.207638 -1.572586 9.269744
#> s(x2).9
#> 5.622738
## IGNORE_RDIFF_END
# \dontshow{
options(op)
# }
```