\name{coef.combss}
\alias{coef.combss}
\title{Extract the subset of selected feature indices.}
\usage{
\method{coef}{combss}(object, k = NULL, ...)
}
\arguments{
\item{object}{A \code{combss} object.}

\item{k}{Subset size to return. Defaults to the best \code{k} if validation
data was used, else the largest \code{k} evaluated.}

\item{...}{Unused.}
}
\value{
Integer vector of selected column indices (1-indexed).
}
\description{
Extract the subset of selected feature indices.
}
\examples{
set.seed(1)
x <- matrix(rnorm(100 * 20), 100, 20)
y <- as.numeric(x[, 1] + x[, 2] + rnorm(100) * 0.1)
fit <- combss(x, y, family = "gaussian", q = 5)
coef(fit, k = 2)
}
